"Fossies" - the Fresh Open Source Software Archive

Member "doc_html/Apollonius_graph_2/classApolloniusGraphDataStructure__2.html" (8 Nov 2019, 14427 Bytes) of package /linux/misc/CGAL-5.0-doc_html.tar.xz:


Caution: In this restricted "Fossies" environment the current HTML page may not be correctly presentated and may have some non-functional links. You can here alternatively try to browse the pure source code or just view or download the uninterpreted raw source code. If the rendering is insufficient you may try to find and view the page on the project site itself.

\( \newcommand{\E}{\mathrm{E}} \) \( \newcommand{\A}{\mathrm{A}} \) \( \newcommand{\R}{\mathrm{R}} \) \( \newcommand{\N}{\mathrm{N}} \) \( \newcommand{\Q}{\mathrm{Q}} \) \( \newcommand{\Z}{\mathrm{Z}} \) \( \def\ccSum #1#2#3{ \sum_{#1}^{#2}{#3} } \def\ccProd #1#2#3{ \sum_{#1}^{#2}{#3} }\)

CGAL 5.0 - 2D Apollonius Graphs (Delaunay Graphs of Disks)
ApolloniusGraphDataStructure_2 Concept Reference

Definition

The concept ApolloniusGraphDataStructure_2 refines the concept TriangulationDataStructure_2. In addition it provides two methods for the insertion and removal of a degree 2 vertex in the data structure. The insertion method adds a new vertex to the specified edge, thus creating two new edges. Moreover, it creates two new faces that have the two newly created edges in common (see figure below). The removal method performs the reverse operation.

insert_degree_2.png
Insertion and removal of degree 2 vertices. Left to right: The edge (f,i) is replaced by two edges by means of inserting a vertex v on the edge. The faces \( f_1\) and \( f_2\) are created. Right to left: the faces \( f_1\) and \( f_2\) are destroyed. The vertex v is deleted and its two adjacent edges are merged.

We only describe the additional requirements with respect to the TriangulationDataStructure_2 concept.

Refines:
TriangulationDataStructure_2
Has Models:
CGAL::Triangulation_data_structure_2<Vb,Fb>
See also
TriangulationDataStructure_2
ApolloniusGraphVertexBase_2
TriangulationFaceBase_2

Insertion

Vertex_handle insert_degree_2 (Face_handle f, int i)
 Inserts a degree two vertex and two faces adjacent to it that have two common edges. More...
 

Removal

void remove_degree_2 (Vertex_handle v)
 Removes a degree 2 vertex and the two faces adjacent to it. More...
 

Member Function Documentation

◆ insert_degree_2()

Vertex_handle ApolloniusGraphDataStructure_2::insert_degree_2 ( Face_handle  f,
int  i 
)

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.

◆ remove_degree_2()

void ApolloniusGraphDataStructure_2::remove_degree_2 ( Vertex_handle  v)

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.

Precondition
The degree of v must be equal to 2.