The class Triangulation_vertex_base_with_info_2<Info,Traits,Vb> is designed to be used as a base vertex class of a triangulation. It provides an easy way to add some user defined information in vertices.
#include <CGAL/Triangulation_vertex_base_with_info_2.h>
The first template parameter is the information the user would like to add to a vertex. It has to be DefaultConstructible and Assignable.
The second template parameter is the geometric traits class which provides the Point_2. It is strongly recommended to instantiate this parameter with the traits class used for the triangulation. This ensures that the point type defined by Triangulation_vertex_base_with_info_2<Info,Traits,Vb> matches the point type defined by the triangulation.
The third template parameter is a vertex base class from which Triangulation_vertex_base_with_info_3 derives. By default this parameter is instantiated by CGAL::Triangulation_vertex_base_2<Traits>.
typedef Info | Info; |
const Info& | v.info () const | Returns a const reference to the object of type Info stored in the vertex. |
Info& | v.info () | Returns a reference to the object of type Info stored in the vertex. |
CGAL::Triangulation_face_base_with_info_2<Info,Traits,Fb>
CGAL::Triangulation_vertex_base_2<Traits,Vb>
CGAL::Regular_triangulation_vertex_base_2<Traits,Vb>