Fade2.5D Documentation pages v2.16.7
Delaunay Features
GEOM_FADE25D::VoroVertex2 Class Reference

Voronoi vertex. More...

#include <VoroVertex2.h>

Public Member Functions

Triangle2getDualTriangle () const
 Retrieve the corresponding dual Delaunay triangle. More...
 
Point2 getPoint ()
 Get the Voronoi vertex as a Point2. More...
 
bool isAlive () const
 Check if the Voronoi vertex is still valid. More...
 

Detailed Description

This class represents a Voronoi vertex, which is the circumcenter of a triangle from the dual Delaunay triangulation.

Member Function Documentation

◆ getDualTriangle()

Triangle2* GEOM_FADE25D::VoroVertex2::getDualTriangle ( ) const

The Voronoi vertex is the circumcenter of a triangle in the dual Delaunay triangulation. This method retrieves the Delaunay triangle that corresponds to the current Voronoi vertex.

Returns
A pointer to the Delaunay triangle corresponding to the current Voronoi vertex.

◆ getPoint()

Point2 GEOM_FADE25D::VoroVertex2::getPoint ( )

Retrieves the Voronoi vertex as a Point2 object.

Returns
the Voronoi vertex represented as a Point2

◆ isAlive()

bool GEOM_FADE25D::VoroVertex2::isAlive ( ) const

As the Voronoi diagram evolves dynamically when points are inserted or removed from the dual Delaunay triangulation, the validity of a Voronoi vertex may change.

Returns
true if the Voronoi vertex is still valid, false otherwise

The documentation for this class was generated from the following file: