The class Triangulation_data_structure_2<Vb,Fb> is a model for the TriangulationDataStructure_2 concept. It can be used to represent an orientable 2D triangulation embedded in a space of any dimension.
#include <CGAL/Triangulation_data_structure_2.h>
In addition to the modifiers required by the TriangulationDataStructure_2 concept, the Triangulation_data_structure_2<Vb,Fb> class supports also the modifiers below. Note also that the modifiers below guarantee the combinatorial validity of the resulting data structure.
|
| |||
Joins
the vertices that are endpoints of the edge (f,i). It returns
a vertex handle to common vertex (see
Fig. 21.5). Precondition: f must be different from Face_handle() and i must be 0, 1 or 2. | ||||
|
| |||
Joins the vertices that are endpoints of the edge e. It returns a vertex handle to common vertex. | ||||
|
| |||
Joins the vertices that are endpoints of the edge *eit. It returns a vertex handle to common vertex. | ||||
|
| |||
Joins the vertices that are endpoints of the edge *ec. It returns a vertex handle to common vertex. | ||||
| ||||
| ||||
Splits the vertex v into two vertices v1 and
v2. The common faces f and g of v1 and
v2 are created after (in the counter-clockwise sense) the
faces f1 and f2. The 4-tuple (v1,v2,f,g) is
returned (see Fig. 21.5). Precondition: dimension() must be equal to 2, f1 and f2 must be different from Face_handle() and v must be a vertex of both f1 and f2. | ||||
|
| |||
Inserts a degree two vertex and two faces adjacent to it that have two common edges. The edge defined by the face handle f and the integer i is duplicated. It returns a handle to the vertex created (see Fig. 21.5). | ||||
|
| |||
Removes a degree 2
vertex and the two faces adjacent to it. The two edges of the star of
v that are not incident to it are collapsed
(see Fig. 21.5). Precondition: The degree of v must be equal to 2. |