Geogram
Version 1.9.1-rc
A programming library of geometric algorithms
|
Adapter class used internally to implement for_each_tetrahedron() More...
#include <geogram/voronoi/generic_RVD.h>
Public Member Functions | |
TetrahedronAction (const ACTION &do_it) | |
Creates a new TetrahedronAction that wraps a user ACTION instance. More... | |
void | operator() (index_t v, index_t t, const Polyhedron &C) const |
Callback called for each polyhedron. More... | |
Protected Member Functions | |
bool | facet_is_incident_to_vertex (const Polyhedron &C, Polyhedron::Corner &c, index_t t) const |
Tests whether a Polyhedron facet is incident to a vertex. More... | |
Protected Attributes | |
const ACTION & | do_it_ |
Adapter class used internally to implement for_each_tetrahedron()
Overrides constness checks, to allow using temporaries as argument of for_each_xxx()
ACTION | the user action class. It needs to implement: operator()(index_t v, signed_index_t v_adj, index_t t, index_t t_adj, const Vertex& v0, const Vertex& v1, const Vertex& v2, const Vertex& v3 ) where the parameters are as follows:
|
Definition at line 883 of file generic_RVD.h.
|
inline |
Creates a new TetrahedronAction that wraps a user ACTION instance.
[in] | do_it | the user ACTION instance |
Definition at line 890 of file generic_RVD.h.
|
inlineprotected |
Tests whether a Polyhedron facet is incident to a vertex.
[in] | C | the Polyhedron |
[in] | c | a corner of the facet |
[in] | t | the index of the vertex in dual form (in other words, a triangle index). |
c
is also incident to the vertex dual to t
, false otherwise Definition at line 994 of file generic_RVD.h.
|
inline |
Callback called for each polyhedron.
Routes the callback to the wrapped user action class.
[in] | v | index of current Delaunay seed |
[in] | t | index of current mesh tetrahedron |
[in] | C | intersection between current mesh tetrahedron and the Voronoi cell of v |
Definition at line 905 of file generic_RVD.h.