CGAL 6.1 - dD Triangulations
Loading...
Searching...
No Matches
TriangulationVertex Class Reference

#include <Concepts/TriangulationVertex.h>

Definition

The concept TriangulationVertex describes the requirements on the type used by the class CGAL::Triangulation<TriangulationTraits_, TriangulationDataStructure_>, and its derived classes, to represent a vertex.

Refines
TriangulationDSVertex

We only list below the additional specific requirements of TriangulationVertex. Compared to TriangulationDSVertex, the main difference is the addition of an association of the vertex with a geometric point.

Has models
CGAL::Triangulation_vertex<TriangulationTraits_, Data, TriangulationDSVertex_>

Input/Output

These operators can be used directly and are called by the I/O operator of class Triangulation.

See also
CGAL::Triangulation_vertex<TriangulationTraits_, Data, TriangulationDSVertex_>
TriangulationFullCell
CGAL::Triangulation<TriangulationTraits_, TriangulationDataStructure_>

Types

typedef unspecified_type Point
 The type of the point stored in the vertex.
 

Creation

 TriangulationVertex (Full_cell_handle c, const Point &p)
 Constructs a vertex with incident full cell c.
 
 TriangulationVertex (const Point &p)
 Same as above, but without incident full cell.
 
 TriangulationVertex ()
 Same as above, but with a default-constructed Point.
 

Operations

void set_point (const Point &p)
 The parameter p becomes the new geometrical position of the vertex.
 
const Pointpoint () const
 Returns the vertex's position.
 
std::istream & operator>> (std::istream &is, TriangulationVertex &v)
 Inputs the non-combinatorial information given by the vertex, i.e., the point and other possible information.
 
std::ostream & operator<< (std::ostream &os, const TriangulationVertex &v)
 Outputs the non-combinatorial information given by the vertex, i.e., the point and other possible information.
 

Member Typedef Documentation

◆ Point

typedef unspecified_type TriangulationVertex::Point

The type of the point stored in the vertex.

It must be the same as the point type TriangulationTraits::Point_d when the TriangulationVertex is used in the class Triangulation<TriangulationTraits, TriangulationDataStructure_>.

Constructor & Destructor Documentation

◆ TriangulationVertex() [1/3]

TriangulationVertex::TriangulationVertex ( Full_cell_handle  c,
const Point p 
)

Constructs a vertex with incident full cell c.

The vertex is embedded at point p.

◆ TriangulationVertex() [2/3]

TriangulationVertex::TriangulationVertex ( const Point p)

Same as above, but without incident full cell.

◆ TriangulationVertex() [3/3]

TriangulationVertex::TriangulationVertex ( )

Same as above, but with a default-constructed Point.

Member Function Documentation

◆ operator<<()

std::ostream & TriangulationVertex::operator<< ( std::ostream &  os,
const TriangulationVertex v 
)

Outputs the non-combinatorial information given by the vertex, i.e., the point and other possible information.

◆ operator>>()

std::istream & TriangulationVertex::operator>> ( std::istream &  is,
TriangulationVertex v 
)

Inputs the non-combinatorial information given by the vertex, i.e., the point and other possible information.

◆ point()

const Point & TriangulationVertex::point ( ) const

Returns the vertex's position.

◆ set_point()

void TriangulationVertex::set_point ( const Point p)

The parameter p becomes the new geometrical position of the vertex.