# Copyright (c) 1997-2005 # Ewgenij Gawrilow, Michael Joswig (Technische Universitaet Berlin, Germany) # http://www.math.tu-berlin.de/polymake, mailto:polymake@math.tu-berlin.de # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the # Free Software Foundation; either version 2, or (at your option) any # later version: http://www.gnu.org/licenses/gpl.txt. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. #----------------------------------------------------------------------------- # $Project: polymake $$Id: voronoi.rules 7592 2007-01-24 11:42:17Z gawrilow $ # For a finite set of @see SITES `S` the Voronoi region of each site is the set of points closest # (with respect to Euclidean distance) to the given site. All Voronoi regions (and their faces) # form a polyhedral complex which is a vertical projection of the boundary complex of an unbounded # polyhedron `P(S)`. This way VoronoiDiagram becomes a derived class from @see RationalPolytope. object VoronoiDiagram : RationalPolytope # category: Voronoi diagrams # Coordinates of the sites in case the polyhedron is Voronoi. # Sites must be distinct. # property SITES $type="matrix"; # The polyhedron defined by the set of @see SITES is the Voronoi polyhedron. Beware of facet at infinity. FACETS : SITES client("voronoi", $this , "FACETS", "SITES"); # category: Voronoi diagrams # Number of @see SITES. # property N_SITES $type="cardinal"; # category: Voronoi diagrams # Unique names assigned to the @see SITES. Works like @see VERTEX_LABELS. # property SITE_LABELS $type="array