Geogram  Version 1.9.1-rc
A programming library of geometric algorithms
GEO::RVDPolygonCallback Class Reference

Baseclass for user functions called for each polygon of a surfacic restricted Voronoi diagram. More...

#include <geogram/voronoi/RVD_callback.h>

Inheritance diagram for GEO::RVDPolygonCallback:
GEO::RVDCallback

Public Member Functions

 RVDPolygonCallback ()
 PolyhedronCallback constructor.
 
 ~RVDPolygonCallback () override
 PolyhedronCallback destructor.
 
void begin () override
 Called at the beginning of the RVD traversal. More...
 
void end () override
 Called at the end of the RVD traversal. More...
 
virtual void operator() (index_t v, index_t t, const GEOGen::Polygon &C) const
 The default callback called for each polygon. More...
 
- Public Member Functions inherited from GEO::RVDCallback
 RVDCallback ()
 RVDCallback constructor.
 
virtual ~RVDCallback ()
 RVDCallback destructor.
 
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...
 

Additional Inherited Members

- Protected Attributes inherited from GEO::RVDCallback
index_t seed_
 
index_t simplex_
 
Process::SpinLockArrayspinlocks_
 

Detailed Description

Baseclass for user functions called for each polygon of a surfacic restricted Voronoi diagram.

A surfacic restricted Voronoi diagram is the intersection between Voronoi cells and the triangles of a given triangulated mesh. The member functions of this class are called for each intersection between a Voronoi cell and a triangle.

Definition at line 153 of file RVD_callback.h.

Member Function Documentation

◆ begin()

void GEO::RVDPolygonCallback::begin ( )
overridevirtual

Called at the beginning of the RVD traversal.

Reimplemented from GEO::RVDCallback.

◆ end()

void GEO::RVDPolygonCallback::end ( )
overridevirtual

Called at the end of the RVD traversal.

Reimplemented from GEO::RVDCallback.

◆ operator()()

virtual void GEO::RVDPolygonCallback::operator() ( index_t  v,
index_t  t,
const GEOGen::Polygon C 
) const
virtual

The default callback called for each polygon.

Parameters
[in]vindex of current Delaunay seed
[in]tindex of current mesh triangle
[in]Cintersection between current mesh triangle and the Voronoi cell of v

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