Geogram  Version 1.9.1-rc
A programming library of geometric algorithms
GEOGen::ConvexCell::Triangle Struct Reference

Represents a vertex of this ConvexCell in dual form. More...

#include <geogram/voronoi/generic_RVD_cell.h>

Public Member Functions

 Triangle (index_t v0, index_t v1, index_t v2, index_t f0, index_t f1, index_t f2)
 Creates a new triangle. More...
 
 Triangle ()
 Creates a new uninitialized Triangle.
 

Public Attributes

GEOGen::Vertex dual_
 
index_t v [3]
 
index_t t [3]
 
index_t next_
 
TriangleStatus status_
 
signed_index_t id_
 

Detailed Description

Represents a vertex of this ConvexCell in dual form.

Each vertex of a ConvexCell is represented combinatorially as a Triangle, in dual form (in primal parlance, each vertex is of degree 3, and can be represented by a triangle). A Triangle knows its tree vertices, its tree adjacent triangles and the geometric point it corresponds to.

Definition at line 99 of file generic_RVD_cell.h.

Constructor & Destructor Documentation

◆ Triangle()

GEOGen::ConvexCell::Triangle::Triangle ( index_t  v0,
index_t  v1,
index_t  v2,
index_t  f0,
index_t  f1,
index_t  f2 
)
inline

Creates a new triangle.

Parameters
[in]v0index of the first vertex
[in]v1index of the second vertex
[in]v2index of the third vertex
[in]f0index of the triangle opposite to v0
[in]f1index of the triangle opposite to v1
[in]f2index of the triangle opposite to v2

Definition at line 110 of file generic_RVD_cell.h.


The documentation for this struct was generated from the following file: