CGAL 6.1 - 2D Periodic Hyperbolic Triangulations
|
#include <Concepts/Periodic_4HyperbolicTriangulationVertexBase_2.h>
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.
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. | |
typedef TriangulationVertexBase_2::Face_handle Periodic_4HyperbolicTriangulationVertexBase_2::Face_handle |
typedef Periodic_4HyperbolicDelaunayTriangulationTraits_2 Periodic_4HyperbolicTriangulationVertexBase_2::Geom_traits |
typedef Geom_traits::Hyperbolic_translation Periodic_4HyperbolicTriangulationVertexBase_2::Hyperbolic_translation |
typedef Geom_traits::Hyperbolic_point_2 Periodic_4HyperbolicTriangulationVertexBase_2::Point |
Periodic_4HyperbolicTriangulationVertexBase_2::Periodic_4HyperbolicTriangulationVertexBase_2 | ( | ) |
Default constructor.
Periodic_4HyperbolicTriangulationVertexBase_2::Periodic_4HyperbolicTriangulationVertexBase_2 | ( | const Point & | p | ) |
Construct a vertex that stores the point p
.
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::Periodic_4HyperbolicTriangulationVertexBase_2 | ( | const Face_handle & | fh | ) |
Constructs a vertex that is incident to the face fh
.
void Periodic_4HyperbolicTriangulationVertexBase_2::clear_translation | ( | ) |
Removes the translation stored in the vertex, and sets the translation flag to false
.
bool Periodic_4HyperbolicTriangulationVertexBase_2::get_translation_flag | ( | ) |
Returns the value of the translation flag.
void Periodic_4HyperbolicTriangulationVertexBase_2::set_translation | ( | const Hyperbolic_translation & | tr | ) |
Stores the translation tr
in the vertex, and sets the translation flag to true
.
Hyperbolic_translation Periodic_4HyperbolicTriangulationVertexBase_2::translation | ( | ) |
Returns the translation stored in the vertex.