CGAL 5.1 - 3D Triangulation Data Structure
TriangulationDataStructure_3::Vertex Class Reference

#include <Concepts/TriangulationDataStructure_3.h>

Definition

The concept TriangulationDataStructure_3::Vertex represents the vertex class of a 3D-triangulation data structure. It must define the types and operations listed in this section. Some of these requirements are of geometric nature, they are optional when using the triangulation data structure class alone. They become compulsory when the triangulation data structure is used as a layer for the geometric triangulation class. (See Section Software Design.)

Creation

In order to obtain new vertices or destruct unused vertices, the user must call the create_vertex() and delete_vertex() methods of the triangulation data structure.

See also
TriangulationDataStructure_3::Cell

Types

The class Vertex defines types that are the same as some of the types defined by the triangulation data structure class TriangulationDataStructure_3.

typedef unspecified_type Point
 Optional for the triangulation data structure alone. More...
 
typedef TriangulationDataStructure_3 Triangulation_data_structure
 
typedef TriangulationDataStructure_3::Vertex_handle Vertex_handle
 
typedef TriangulationDataStructure_3::Cell_handle Cell_handle
 

Access Functions

Cell_handle cell () const
 Returns a cell of the triangulation having v as vertex. More...
 
Point point () const
 Returns the point stored in the vertex. More...
 

Setting

void set_cell (Cell_handle c)
 Sets the incident cell to c. More...
 
void set_point (const Point &p)
 Sets the point to p. More...
 

Checking

bool is_valid (bool verbose=false) const
 This is a function for debugging purpose. More...
 

Member Typedef Documentation

◆ Cell_handle

typedef TriangulationDataStructure_3::Cell_handle TriangulationDataStructure_3::Vertex::Cell_handle

◆ Point

typedef unspecified_type TriangulationDataStructure_3::Vertex::Point

Optional for the triangulation data structure alone.

◆ Triangulation_data_structure

typedef TriangulationDataStructure_3 TriangulationDataStructure_3::Vertex::Triangulation_data_structure

◆ Vertex_handle

typedef TriangulationDataStructure_3::Vertex_handle TriangulationDataStructure_3::Vertex::Vertex_handle

Member Function Documentation

◆ cell()

Cell_handle TriangulationDataStructure_3::Vertex::cell ( ) const

Returns a cell of the triangulation having v as vertex.

◆ is_valid()

bool TriangulationDataStructure_3::Vertex::is_valid ( bool  verbose = false) const

This is a function for debugging purpose.

Debugging Support

Checks the validity of the vertex. Must check that its incident cell has this vertex. The validity of the base vertex is also checked.

When verbose is set to true, messages are printed to give a precise indication on the kind of invalidity encountered.

◆ point()

Point TriangulationDataStructure_3::Vertex::point ( ) const

Returns the point stored in the vertex.

Optional for the triangulation data structure alone.

◆ set_cell()

void TriangulationDataStructure_3::Vertex::set_cell ( Cell_handle  c)

Sets the incident cell to c.

◆ set_point()

void TriangulationDataStructure_3::Vertex::set_point ( const Point p)

Sets the point to p.

Optional for the triangulation data structure alone.