|
| Delaunay3 () |
| Default constructor.
|
|
| ~Delaunay3 () override |
| Destructor.
|
|
void | set_vertices (unsigned int nb_vertices, const float *vertices) override |
| Sets the vertices from an array of floating point numbers, in which each consecutive number triple denotes a 3D point.
|
|
void | set_vertices (const std::vector< vec3 > &vertices) |
| Sets the vertices from an array of 3D points.
|
|
unsigned int | nb_tets () const |
| Returns the number of tetrahedra.
|
|
const int * | tet_to_v () const |
| Returns the pointer to the tetrahedron-to-vertex mapping.
|
|
const int * | tet_to_tet () const |
| Returns the pointer to the tetrahedron-to-tetrahedron mapping.
|
|
int | vertex_tet (int v) const |
| Returns the index of a tetrahedron containing the vertex v .
|
|
unsigned int | nearest_vertex (const float *p) const override |
| Finds the index of the nearest vertex to a given point.
|
|
unsigned int | nearest_vertex (const vec3 &p) const |
| Finds the index of the nearest vertex to a given 3D point.
|
|
const vec3 & | vertex (unsigned int i) const |
| Returns the coordinates of the vertex with index i .
|
|
int | tet_vertex (unsigned int t, unsigned int lv) const |
| Returns the index of the lv -th vertex in the t -th tetrahedron.
|
|
int | tet_adjacent (unsigned int t, unsigned int lf) const |
| Returns the index of the tetrahedron adjacent to the lf -th face of the t -th tetrahedron.
|
|
int | tet_facet_vertex (unsigned int t, unsigned int lf, unsigned int lv) const |
| Returns the index of the lv -th vertex in the lf -th face of the t -th tetrahedron.
|
|
int | next_around_halfedge (int t, unsigned int lv1, unsigned int lv2) const |
| Returns the next tetrahedron around the halfedge defined by vertices lv1 and lv2 in tetrahedron t .
|
|
int | prev_around_halfedge (int t, unsigned int lv1, unsigned int lv2) const |
| Returns the previous tetrahedron around the halfedge defined by vertices lv1 and lv2 in tetrahedron t .
|
|
vec3 | facet_normal (unsigned int t, unsigned int f) const |
| Computes the normal vector of the f -th face of the t -th tetrahedron.
|
|
vec3 | tet_circumcenter (unsigned int t) const |
| Computes the circumcenter of the t -th tetrahedron.
|
|
void | get_voronoi_cell (unsigned int v, VoronoiCell3d &cell, bool geometry=true) const |
| Computes the Voronoi cell associated with vertex v .
|
|
| Delaunay (unsigned int dimension) |
| Constructor.
|
|
virtual | ~Delaunay () |
| Virtual destructor.
|
|
unsigned int | dimension () const |
| Returns the dimension of the triangulation.
|
|
unsigned int | cell_size () const |
| Returns the size of a cell.
|
|
const float * | vertices_ptr () const |
| Returns a pointer to the vertices array.
|
|
const float * | vertex_ptr (unsigned int i) const |
| Returns a pointer to the vertex of index i .
|
|
unsigned int | nb_vertices () const |
| Returns the number of vertices.
|
|
unsigned int | nb_cells () const |
| Returns the number of cells.
|
|
const int * | cell_to_v () const |
| Returns a pointer to the cell-to-vertex mapping.
|
|
const int * | cell_to_cell () const |
| Returns a pointer to the cell-to-cell mapping.
|
|
int | cell_vertex (unsigned int c, unsigned int lv) const |
| Returns the index of the lv -th vertex in the c -th cell.
|
|
int | cell_adjacent (unsigned int c, unsigned int lf) const |
| Returns the index of the cell adjacent to the lf -th face of the c -th cell.
|
|
int | vertex_cell (unsigned int v) const |
| Returns the index of a cell containing the vertex v .
|
|
unsigned int | index (unsigned int c, int v) const |
| Returns the local index of vertex v within cell c .
|
|
unsigned int | adjacent_index (unsigned int c1, unsigned int c2) const |
| Returns the local index of the face shared by cells c1 and c2 .
|
|
unsigned int | next_around_vertex (unsigned int c, unsigned int lv) const |
| Returns the next cell around vertex lv in cell c .
|
|
virtual void | get_neighbors (unsigned int v, std::vector< unsigned int > &neighbors) const |
| Retrieves the one-ring neighbors of vertex v .
|
|
bool | check_duplicate_vertices () |
| Checks for duplicate vertices in stored neighbor lists.
|
|
3D Delaunay triangulation, using Hang Si's tetgen.
This class provides functionality for 3D Delaunay triangulation using the tetgen library. It manages vertices, tetrahedra, and their relationships, and provides methods for querying the triangulation structure and computing Voronoi cells.
- See also
- Delaunay, Delaunay2