Graphite
Version 3
An experimental 3D geometry processing program
|
Baseclass for user functions called for each element (polygon or polyhedron) of a restricted Voronoi diagram traversal. More...
#include <geogram/voronoi/RVD_callback.h>
Public Member Functions | |
RVDCallback () | |
RVDCallback constructor. | |
virtual | ~RVDCallback () |
RVDCallback destructor. | |
virtual void | begin () |
Called at the beginning of the RVD traversal. | |
virtual void | end () |
Called at the end of the RVD traversal. | |
index_t | seed () const |
Gets the index of the seed that corresponds to the current polygon/polyhedron. More... | |
index_t | simplex () const |
Gets the index of the simplex that corresponds to the current polygon/polyhedron. More... | |
void | set_spinlocks (Process::SpinLockArray *spinlocks) |
Sets the spinlocks array. More... | |
Protected Attributes | |
index_t | seed_ |
index_t | simplex_ |
Process::SpinLockArray * | spinlocks_ |
Baseclass for user functions called for each element (polygon or polyhedron) of a restricted Voronoi diagram traversal.
Definition at line 76 of file RVD_callback.h.
|
inline |
Gets the index of the seed that corresponds to the current polygon/polyhedron.
The current polygon/polyhedron is the intersection between a Voronoi cell (associted with a seed) and a simplex.
Definition at line 107 of file RVD_callback.h.
|
inline |
Sets the spinlocks array.
In multithreading mode, a spinlocks array can be used to manage concurrent accesses.
[in] | spinlocks | a pointer to the Process::SpinLockArray or nullptr if no spinlocks are used. |
Definition at line 131 of file RVD_callback.h.
|
inline |
Gets the index of the simplex that corresponds to the current polygon/polyhedron.
The current polygon/polyhedron is the intersection between a Voronoi cell and a simplex.
Definition at line 120 of file RVD_callback.h.