CGAL 5.6.3 - CGAL and the Boost Graph Library

Loading...
Searching...
No Matches
List of all members
CGAL::Triangulation_face_base_with_id_2< TriangulationTraits_2, TriangulationFaceBase_2 > Class Template Reference
CGAL and the Boost Graph Library Reference » External Indices

`#include <CGAL/Triangulation_face_base_with_id_2.h>`

## Inherits from

TriangulationFaceBase_2.

## Definition

template<typename TriangulationTraits_2, typename TriangulationFaceBase_2>
class CGAL::Triangulation_face_base_with_id_2< TriangulationTraits_2, TriangulationFaceBase_2 >

The class `Triangulation_face_base_with_id_2` is a model of the concept `TriangulationFaceBase_2`, the base face of a 2D-triangulation.

It provides an integer field that can be used to index faces for BGL algorithms.

Note that the user is in charge of setting indices correctly before running a graph algorithm, by calling the function `CGAL::set_triangulation_ids(Triangulation&)`.

Template Parameters

  TriangulationTraits_2 | is the geometric traits class and must be a model of `TriangulationTraits_2`.
  TriangulationFaceBase_2 | must be a face base class from which `Triangulation_face_base_with_id_2` derives. It has the default value `Triangulation_face_base_2<TriangulationTraits_2>`.

Is Model Of:
  `TriangulationFaceBase_2`

See also
  `CGAL::Triangulation_face_base_2`

## Access Functions
int | id () const
| Returns the index.
int & | id ()
| Returns a reference to the index stored in the face.