CGAL::Triangulation_vertex_base_with_id_2<TriangulationTraits_2, TriangulationVertexBase_2>

Definition

The class Triangulation_vertex_base_with_id_2 is a model of the concept TriangulationVertexBase_2, the base vertex of a 2D-triangulation. It provides an integer field that can be used to index vertices for BGL algorithms.

Note that the user is in charge to set the index correctly before running a graph algorithm.

#include <CGAL/Triangulation_vertex_base_with_id_2.h>

Parameters

The first template argument is the geometric traits class TriangulationTraits_2 which provides the Point_2.

The second template argument is a vertex base class from which Triangulation_vertex_base_with_id_2 derives. It has the default value Triangulation_vertex_base_2<TriangulationTraits_2>.

Is Model for the Concepts

TriangulationVertexBase_2

Inherits From

TriangulationVertexBase_2

Access Functions

int v.id () const Returns the index.
int& v.id () Returns a reference to the index stored in the vertex.

See Also

CGAL::Triangulation_vertex_base_2