Geogram
Version 1.9.1
A programming library of geometric algorithms
|
A vertex of the triangulation. More...
#include <geogram/mesh/mesh_surface_intersection_internal.h>
Public Types | |
enum | Type { UNINITIALIZED , MESH_VERTEX , PRIMARY_ISECT , SECONDARY_ISECT } |
Public Member Functions | |
Vertex (MeshInTriangle *M, index_t f, index_t lv) | |
Constructor for macro-triangle vertices. More... | |
Vertex (MeshInTriangle *M, index_t f1, index_t f2, TriangleRegion R1, TriangleRegion R2) | |
Constructor for intersections with other facets. More... | |
Vertex (MeshInTriangle *M, const ExactPoint &point_exact_in) | |
Constructor for intersections between constraints. More... | |
Vertex () | |
Default constructor. | |
const Mesh & | mesh () const |
Gets the mesh. More... | |
void | print (std::ostream &out=std::cerr) const |
Prints this vertex. More... | |
std::string | to_string () const |
Gets a string representation of this Vertex. More... | |
vec2 | get_UV_approx () const |
Public Attributes | |
MeshInTriangle * | mit |
ExactPoint | point_exact |
Type | type |
index_t | mesh_vertex_index |
struct { | |
index_t f1 | |
index_t f2 | |
TriangleRegion R1 | |
TriangleRegion R2 | |
} | sym |
double | l |
Protected Member Functions | |
void | init_sym (index_t f1, index_t f2, TriangleRegion R1, TriangleRegion R2) |
Initializes the symbolic information of this Vertex. More... | |
ExactPoint | compute_geometry () |
Gets the geometry of this vertex. More... | |
void | init_geometry (const ExactPoint &P) |
Optimizes exact numbers in generated points and computes approximate coordinates. | |
A vertex of the triangulation.
Stores geometric information in exact precision, both in 3D and in local 2D coordinates. It also stores symbolic information, that is, facet indices and regions that generated the vertex.
Definition at line 112 of file mesh_surface_intersection_internal.h.
|
inline |
Constructor for macro-triangle vertices.
[in] | f | facet index, supposed to correspond to MeshInTriangle's current facet |
[in] | lv | local vertex index in f |
Definition at line 125 of file mesh_surface_intersection_internal.h.
|
inline |
Constructor for intersections with other facets.
[in] | f1,f2 | the two facets. f1 is suposed to correspond to MeshInTriangle's current facet |
[in] | R1,R2 | the two facet regions. |
Definition at line 139 of file mesh_surface_intersection_internal.h.
|
inline |
Constructor for intersections between constraints.
[in] | point_exact_in | exact 3D coordinates of the intersection |
Definition at line 156 of file mesh_surface_intersection_internal.h.
|
protected |
Gets the geometry of this vertex.
Computes the exact 3D position of this vertex based on the mesh and the combinatorial information
|
inlineprotected |
Initializes the symbolic information of this Vertex.
[in] | f1,f2 | the two facets. f1 is suposed to correspond to MeshInTriangle's current facet |
[in] | R1,R2 | the two facet regions. |
Definition at line 216 of file mesh_surface_intersection_internal.h.
|
inline |
Gets the mesh.
Definition at line 179 of file mesh_surface_intersection_internal.h.
void GEO::MeshInTriangle::Vertex::print | ( | std::ostream & | out = std::cerr | ) | const |
Prints this vertex.
Displays the combinatorial information
[out] | out | an optional stream where to print |
|
inline |
Gets a string representation of this Vertex.
Definition at line 195 of file mesh_surface_intersection_internal.h.