CGAL 5.1 - 2D Periodic Triangulations
Periodic_2TriangulationVertexBase_2 Class Reference

#include <Concepts/Periodic_2TriangulationVertexBase_2.h>

Definition

A refinement of the concept TriangulationVertexBase_2 which adds an API for offset.

At the base level of 2D-triangulations (see Section Software Design), a vertex provides access to one of its incident faces through a handle.

The storage of the offset is only needed when a triangulation is copied.

Refines:
TriangulationVertexBase_2
Has Models:
CGAL::Periodic_2_triangulation_vertex_base_2
See also
TriangulationDataStructure_2
TriangulationVertexBase_2
Periodic_2TriangulationFaceBase_2

Types

typedef unspecified_type Periodic_2_offset_2
 A model of the concept Periodic_2Offset_2 More...
 

Access Functions

Periodic_2_offset_2 offset () const
 Returns the offset stored in the vertex. More...
 
bool get_offset_flag () const
 Returns true if the offset has been set, false otherwise. More...
 
void set_offset (Periodic_2_offset_2 o)
 Sets the offset and sets the offset flag to true. More...
 
void clear_offset ()
 Sets the offset flag to false and clears the offset. More...
 

Member Typedef Documentation

◆ Periodic_2_offset_2

A model of the concept Periodic_2Offset_2

Member Function Documentation

◆ clear_offset()

void Periodic_2TriangulationVertexBase_2::clear_offset ( )

Sets the offset flag to false and clears the offset.

◆ get_offset_flag()

bool Periodic_2TriangulationVertexBase_2::get_offset_flag ( ) const

Returns true if the offset has been set, false otherwise.

◆ offset()

Periodic_2_offset_2 Periodic_2TriangulationVertexBase_2::offset ( ) const

Returns the offset stored in the vertex.

◆ set_offset()

void Periodic_2TriangulationVertexBase_2::set_offset ( Periodic_2_offset_2  o)

Sets the offset and sets the offset flag to true.