Geogram
Version 1.9.1
A programming library of geometric algorithms
|
Internal representation of vertices in GenericVoronoiDiagram. More...
#include <geogram/voronoi/generic_RVD_vertex.h>
Public Member Functions | |
Vertex (const double *p, double w, signed_index_t f, const SymbolicVertex &sym) | |
Creates a new Vertex. More... | |
Vertex (const double *p, double w, signed_index_t f) | |
Creates a new Vertex. More... | |
Vertex () | |
Creates an uninitialized Vertex. | |
const double * | point () const |
Gets the geometric location at this Vertex. More... | |
void | set_point (const double *p) |
Sets the geometric location at this vertex. More... | |
double | weight () const |
Gets Vertex weight. More... | |
void | set_weight (double w) |
Sets the vertex weight. More... | |
signed_index_t | adjacent_seed () const |
Gets the adjacent seed. More... | |
void | set_adjacent_seed (signed_index_t s) |
Sets the adjacent seed. More... | |
const SymbolicVertex & | sym () const |
Gets the symbolic representation. More... | |
SymbolicVertex & | sym () |
Gets the symbolic representation. | |
signed_index_t | adjacent_facet () const |
Gets the adjacent facet. More... | |
void | set_adjacent_facet (signed_index_t f) |
Sets the adjacent facet. More... | |
operator const double * () const | |
Implicit conversion that accesses the geometric location. More... | |
void | clear () |
Clears this Vertex. | |
void | set_flag (EdgeFlag f) |
Sets an EdgeFlag in this Vertex. | |
void | unset_flag (EdgeFlag f) |
Resets an EdgeFlag in this Vertex. | |
bool | check_flag (EdgeFlag f) const |
Tests an EdgeFlag in this Vertex. | |
void | copy_edge_from (const Vertex &rhs) |
Copies adjacent facet and edge flags from another Vertex. | |
template<index_t DIM> | |
void | intersect_geom (PointAllocator &target_intersections, const Vertex &vq1, const Vertex &vq2, const double *p1, const double *p2) |
Computes the intersection between a segment and a bisector. More... | |
template<index_t DIM> | |
Sign | side_fast (const double *p1, const double *p2) const |
Computes the side of this vertex relative to a bisector. More... | |
Internal representation of vertices in GenericVoronoiDiagram.
Vertex has both geometrical and symbolic representations.
Definition at line 787 of file generic_RVD_vertex.h.
|
inline |
Creates a new Vertex.
[in] | p | geometric location at the vertex, shared with caller |
[in] | w | weight |
[in] | f | facet of the input mesh this Vertex comes from |
[in] | sym | symbolic representation |
Definition at line 800 of file generic_RVD_vertex.h.
|
inline |
Creates a new Vertex.
[in] | p | geometric location at the vertex, shared with caller |
[in] | w | weight |
[in] | f | facet of the input mesh this Vertex comes from |
Definition at line 818 of file generic_RVD_vertex.h.
|
inline |
Gets the adjacent facet.
Definition at line 907 of file generic_RVD_vertex.h.
|
inline |
Gets the adjacent seed.
Definition at line 875 of file generic_RVD_vertex.h.
|
inline |
Computes the intersection between a segment and a bisector.
Computes the intersection between the segment [vq1, vq2] and the bisector of [p1,p2]..
DIM | dimension, specified as a template argument for efficiency considerations |
Definition at line 977 of file generic_RVD_vertex.h.
|
inline |
Implicit conversion that accesses the geometric location.
With this implicit conversions, we can have template arguments for RestrictedVoronoiDiagram that take const double* as arguments instead of Vertices.
Definition at line 926 of file generic_RVD_vertex.h.
|
inline |
Gets the geometric location at this Vertex.
Definition at line 841 of file generic_RVD_vertex.h.
|
inline |
Sets the adjacent facet.
[in] | f | the global index of the adjacent facet |
Definition at line 915 of file generic_RVD_vertex.h.
|
inline |
Sets the adjacent seed.
[in] | s | the global index of the adjacent seed |
Definition at line 883 of file generic_RVD_vertex.h.
|
inline |
Sets the geometric location at this vertex.
[in] | p | the geometric location, shared with caller |
Definition at line 849 of file generic_RVD_vertex.h.
|
inline |
Sets the vertex weight.
Used by non-uniform centroidal Voronoi tesselation..
Definition at line 867 of file generic_RVD_vertex.h.
|
inline |
Computes the side of this vertex relative to a bisector.
This version is not exact.
[in] | p1 | first extremity of the bisector |
[in] | p2 | second extremity of the bisector |
Definition at line 1021 of file generic_RVD_vertex.h.
|
inline |
Gets the symbolic representation.
Symbolic representation
Definition at line 892 of file generic_RVD_vertex.h.
|
inline |
Gets Vertex weight.
Used by non-uniform centroidal Voronoi tesselation.
Definition at line 858 of file generic_RVD_vertex.h.