CGAL 6.1 - 2D Periodic Hyperbolic Triangulations
Loading...
Searching...
No Matches
Periodic_4HyperbolicTriangulationVertexBase_2 Class Reference

#include <Concepts/Periodic_4HyperbolicTriangulationVertexBase_2.h>

Definition

Refines
TriangulationVertexBase_2

A refinement of the concept TriangulationVertexBase_2 that adds an interface for hyperbolic translations.

For periodic hyperbolic triangulations, the vertex base class needs to temporarily store a hyperbolic translation during the insertion process. A boolean flag indicates whether the face stores a translation or not. The value of the flag is automatically set when storing or removing a translation.

Has models
CGAL::Periodic_4_hyperbolic_triangulation_vertex_base_2
See also
TriangulationDataStructure_2
Periodic_4HyperbolicTriangulationFaceBase_2

Types

typedef TriangulationVertexBase_2::Face_handle Face_handle
 
typedef Periodic_4HyperbolicDelaunayTriangulationTraits_2 Geom_traits
 
typedef Geom_traits::Hyperbolic_point_2 Point
 
typedef Geom_traits::Hyperbolic_translation Hyperbolic_translation
 

Creation

 Periodic_4HyperbolicTriangulationVertexBase_2 ()
 Default constructor.
 
 Periodic_4HyperbolicTriangulationVertexBase_2 (const Point &p)
 Construct a vertex that stores the point p.
 
 Periodic_4HyperbolicTriangulationVertexBase_2 (const Point &p, Face_handle fh)
 Constructs a vertex that stores the point p and is incident to the face fh.
 
 Periodic_4HyperbolicTriangulationVertexBase_2 (const Face_handle &fh)
 Constructs a vertex that is incident to the face fh.
 

Hyperbolic translations API

void set_translation (const Hyperbolic_translation &tr)
 Stores the translation tr in the vertex, and sets the translation flag to true.
 
Hyperbolic_translation translation ()
 Returns the translation stored in the vertex.
 
void clear_translation ()
 Removes the translation stored in the vertex, and sets the translation flag to false.
 
bool get_translation_flag ()
 Returns the value of the translation flag.
 

Member Typedef Documentation

◆ Face_handle

typedef TriangulationVertexBase_2::Face_handle Periodic_4HyperbolicTriangulationVertexBase_2::Face_handle

◆ Geom_traits

◆ Hyperbolic_translation

typedef Geom_traits::Hyperbolic_translation Periodic_4HyperbolicTriangulationVertexBase_2::Hyperbolic_translation

◆ Point

typedef Geom_traits::Hyperbolic_point_2 Periodic_4HyperbolicTriangulationVertexBase_2::Point

Constructor & Destructor Documentation

◆ Periodic_4HyperbolicTriangulationVertexBase_2() [1/4]

Periodic_4HyperbolicTriangulationVertexBase_2::Periodic_4HyperbolicTriangulationVertexBase_2 ( )

Default constructor.

◆ Periodic_4HyperbolicTriangulationVertexBase_2() [2/4]

Periodic_4HyperbolicTriangulationVertexBase_2::Periodic_4HyperbolicTriangulationVertexBase_2 ( const Point p)

Construct a vertex that stores the point p.

◆ Periodic_4HyperbolicTriangulationVertexBase_2() [3/4]

Periodic_4HyperbolicTriangulationVertexBase_2::Periodic_4HyperbolicTriangulationVertexBase_2 ( const Point p,
Face_handle  fh 
)

Constructs a vertex that stores the point p and is incident to the face fh.

◆ Periodic_4HyperbolicTriangulationVertexBase_2() [4/4]

Periodic_4HyperbolicTriangulationVertexBase_2::Periodic_4HyperbolicTriangulationVertexBase_2 ( const Face_handle fh)

Constructs a vertex that is incident to the face fh.

Member Function Documentation

◆ clear_translation()

void Periodic_4HyperbolicTriangulationVertexBase_2::clear_translation ( )

Removes the translation stored in the vertex, and sets the translation flag to false.

◆ get_translation_flag()

bool Periodic_4HyperbolicTriangulationVertexBase_2::get_translation_flag ( )

Returns the value of the translation flag.

◆ set_translation()

void Periodic_4HyperbolicTriangulationVertexBase_2::set_translation ( const Hyperbolic_translation tr)

Stores the translation tr in the vertex, and sets the translation flag to true.

◆ translation()

Hyperbolic_translation Periodic_4HyperbolicTriangulationVertexBase_2::translation ( )

Returns the translation stored in the vertex.