31 #if GEOM_PSEUDO3D==GEOM_TRUE
32 namespace GEOM_FADE25D {
33 #elif GEOM_PSEUDO3D==GEOM_FALSE
34 namespace GEOM_FADE2D {
36 #error GEOM_PSEUDO3D is not defined
130 const char* filename,
132 bool bCellColors=
true,
135 bool bCellLabels=
false
161 bool bCellColors=
true,
164 bool bCellLabels=
false
Represents a 2D point.
Definition: Point2.h:61
Represents a triangle in a triangulation.
Definition: Triangle2.h:59
A PDF and Postscript Writer for 2D Visualization.
Definition: Visualizer2.h:60
Voronoi cell.
Definition: VoroCell2.h:45
Voronoi vertex.
Definition: VoroVertex2.h:43
Voronoi diagram.
Definition: Voronoi2.h:63
VoroCell2 * locateVoronoiCell(const Point2 &queryPoint)
Locate a Voronoi Cell.
VoroCell2 * getVoronoiCell(Point2 *pSite)
Retrieve the Voronoi cell of a specific site.
bool getVCellsAtVEdge(VoroVertex2 *pVoroVtx0, VoroVertex2 *pVoroVtx1, VoroCell2 *&pCell0, VoroCell2 *&pCell1)
Get the Voronoi cells adjacent to a Voronoi edge.
bool isValid() const
Check if the Voronoi diagram is valid.
VoroVertex2 * getVoronoiVertex(Triangle2 *pT)
Get the Voronoi vertex of a triangle.
void getVoronoiCells(std::vector< VoroCell2 * > &vVoronoiCells)
Retrieve all Voronoi cells.
void show(const char *filename, bool bVoronoi=true, bool bCellColors=true, bool bSites=true, bool bDelaunay=true, bool bCellLabels=false)
Draw the Voronoi diagram.
void show(Visualizer2 *pVisualizer, bool bVoronoi=true, bool bCellColors=true, bool bSites=true, bool bDelaunay=true, bool bCellLabels=false)
Draw the Voronoi diagram.