Geogram
Version 1.9.1-rc
A programming library of geometric algorithms
|
A set of three integers that encodes the equation of a vertex in GenericVoronoiDiagram. More...
#include <geogram/voronoi/generic_RVD_vertex.h>
Public Member Functions | |
SymbolicVertex () | |
Creates an uninitialized SymbolicVertex. | |
void | add_bisector (index_t i) |
Adds a bisector to the symbolic representation. | |
void | add_boundary_facet (index_t i) |
Adds a boundary facet to the symbolic representation. | |
index_t | nb_boundary_facets () const |
Gets the number of boundary facets in the symbolic representation. | |
index_t | nb_bisectors () const |
Gets the number of bisectors in the symbolic representation. | |
index_t | bisector (signed_index_t i) const |
Gets a bisector. More... | |
index_t | boundary_facet (signed_index_t i) const |
Gets a boundary facet. More... | |
bool | has_bisector (index_t i) const |
Tests whether a bisector is present in the symbolic representation this vertex. More... | |
bool | has_boundary_facet (index_t i) const |
Tests whether a boundary facet is present in the symbolic representation of this vertex. More... | |
index_t | get_boundary_vertex () const |
Gets the global index of the boundary vertex that corresponds to this vertex. More... | |
void | get_boundary_edge (index_t &v1, index_t &v2) const |
Gets the global indices of the boundary vertices that define the boundary edge on which this vertex is located. More... | |
void | set_boundary_vertex (index_t v) |
Sets the boundary vertex on which this vertex is located. More... | |
void | set_boundary_edge (index_t v1, index_t v2) |
Sets the boundary edge on which this vertex is located. More... | |
void | copy_boundary_edge_from (const thisclass &rhs) |
Copies a boundary edge from the symbolic representation of another vertex. | |
bool | intersect_symbolic (const thisclass &v1, const thisclass &v2, index_t E) |
Computes the symbolic representation of the intersection between a segment and a bisector. More... | |
Public Member Functions inherited from GEOGen::small_set< GEO::signed_index_t, 3 > | |
small_set () | |
Constructs an empty small_set. | |
index_t | size () const |
Gets the number of element in this small_set. | |
index_t | capacity () const |
Gets the maximum number of elements that can be stored in this small_set. | |
iterator | begin () |
Gets an iterator to the first element. | |
const_iterator | begin () const |
Gets a const iterator to the first element.. | |
iterator | end () |
Gets an iterator one position past the last element. | |
const_iterator | end () const |
Gets a const iterator one position past the last element. | |
iterator | end_of_storage () |
Gets an iterator one position past the last element that can be stored. | |
const_iterator | end_of_storage () const |
Gets a const iterator one position past the last element that can be stored. | |
iterator | insert (const GEO::signed_index_t &x) |
Insert a new element. More... | |
iterator | insert (const GEO::signed_index_t &x, iterator where) |
Inserts a new element at a specified location.. More... | |
void | clear () |
Clears this small_set. | |
iterator | find (const GEO::signed_index_t &x) |
Finds an element by value. More... | |
const_iterator | find (const GEO::signed_index_t &x) const |
Finds an element by value. More... | |
void | push_back (const GEO::signed_index_t &x) |
Appends an element to the end of the list. More... | |
void | print (std::ostream &out) const |
Displays the stored elements. | |
GEO::signed_index_t & | operator[] (signed_index_t i) |
Direct access to an element. More... | |
const GEO::signed_index_t & | operator[] (signed_index_t i) const |
Direct access to an element. More... | |
Static Public Member Functions | |
static index_t | to_unsigned_int (signed_index_t x) |
Casts a signed_index_t into an (unsigned) index_t. More... | |
Additional Inherited Members | |
Public Types inherited from GEOGen::small_set< GEO::signed_index_t, 3 > | |
typedef GEO::signed_index_t * | iterator |
A random access iterator to elements | |
typedef const GEO::signed_index_t * | const_iterator |
A random access iterator to const elements. | |
typedef GEO::signed_index_t & | reference |
Reference to element. | |
typedef GEO::signed_index_t | value_type |
Type of the elements. | |
Protected Member Functions inherited from GEOGen::small_set< GEO::signed_index_t, 3 > | |
void | grow () |
Increases the size of this small_set. More... | |
iterator | find_i (const GEO::signed_index_t &x) |
Finds where an element is or where it should be inserted from its value. More... | |
const_iterator | find_i (const GEO::signed_index_t &x) const |
Finds where an element should be located from its value. More... | |
Protected Attributes inherited from GEOGen::small_set< GEO::signed_index_t, 3 > | |
GEO::signed_index_t | data_ [DIM] |
index_t | size_ |
A set of three integers that encodes the equation of a vertex in GenericVoronoiDiagram.
There is some additional information for the following two configurations:
Doing so avoids recomputing vertices that we already know (and avoids numerical problems when the boundary surface has coplanar (or nearly coplanar) facets). It also allows using exact predicates (not implemented yet).
Definition at line 408 of file generic_RVD_vertex.h.
|
inline |
Gets a bisector.
[in] | i | local index of the bisector |
Definition at line 481 of file generic_RVD_vertex.h.
|
inline |
Gets a boundary facet.
[in] | i | local index of the boundary facet |
Definition at line 492 of file generic_RVD_vertex.h.
|
inline |
Gets the global indices of the boundary vertices that define the boundary edge on which this vertex is located.
[out] | v1 | index of the first extremity of the boundary edge |
[out] | v2 | index of the second extremity of the boundary edge |
Definition at line 533 of file generic_RVD_vertex.h.
|
inline |
Gets the global index of the boundary vertex that corresponds to this vertex.
Definition at line 520 of file generic_RVD_vertex.h.
|
inline |
Tests whether a bisector is present in the symbolic representation this vertex.
[in] | i | global index of the bisector |
Definition at line 502 of file generic_RVD_vertex.h.
|
inline |
Tests whether a boundary facet is present in the symbolic representation of this vertex.
[in] | i | global index of the boundary facet |
Definition at line 511 of file generic_RVD_vertex.h.
|
inline |
Computes the symbolic representation of the intersection between a segment and a bisector.
Computes the intersection between the segment [v1
, v2
] and the bisector E
Definition at line 582 of file generic_RVD_vertex.h.
|
inline |
Sets the boundary edge on which this vertex is located.
[in] | v1 | global index of the first boundary vertex |
[in] | v2 | global index of the second boundary vertex |
Definition at line 555 of file generic_RVD_vertex.h.
|
inline |
Sets the boundary vertex on which this vertex is located.
[in] | v | global index of the boundary vertex |
Definition at line 545 of file generic_RVD_vertex.h.
|
inlinestatic |
Casts a signed_index_t into an (unsigned) index_t.
In debug mode, throws an assertion failure exception whenever x
is negative.
Definition at line 469 of file generic_RVD_vertex.h.