Class SFCGAL::triangulate::ConstraintDelaunayTriangulation#
ClassList > triangulate > ConstraintDelaunayTriangulation
2DZ constraint Delaunay triangulation
#include <ConstraintDelaunayTriangulation.h>
Classes#
Type | Name |
---|---|
struct | FaceInfo |
struct | VertexInfo vertex info in triangulation |
Public Types#
Type | Name |
---|---|
typedef CDT::All_faces_iterator | All_faces_iterator |
typedef CGAL::Constrained_Delaunay_triangulation_2< Kernel, Triangulation_data_structure, CGAL::Exact_predicates_tag > | CDT |
typedef CGAL::Constrained_triangulation_face_base_2< Kernel, Triangulation_face_base > | Constrained_triangulation_face_base |
typedef CDT::Face_handle | Face_handle |
typedef CDT::Finite_faces_iterator | Finite_faces_iterator |
typedef CGAL::Triangulation_data_structure_2< Triangulation_vertex_base, Constrained_triangulation_face_base > | Triangulation_data_structure |
typedef CGAL::Triangulation_face_base_with_info_2< FaceInfo, Kernel > | Triangulation_face_base |
typedef CGAL::Triangulation_vertex_base_with_info_2< VertexInfo, Kernel > | Triangulation_vertex_base |
typedef CDT::Vertex_handle | Vertex_handle |
Public Functions#
Type | Name |
---|---|
ConstraintDelaunayTriangulation () default constructor |
|
void | addConstraint (Vertex_handle source, Vertex_handle target) add a vertex to the triangulation |
Vertex_handle | addVertex (const Coordinate & position) add a vertex to the triangulation |
All_faces_iterator | all_faces_begin () const get all face iterator |
All_faces_iterator | all_faces_end () const get all face iterator |
CDT & | cdt () [advanced]get the CGAL object |
const CDT & | cdt () const [advanced]get the CGAL object |
void | clear () clear the triangulation |
Finite_faces_iterator | finite_faces_begin () const get finite face iterator |
Finite_faces_iterator | finite_faces_end () const get finite face iterator |
void | getTriangles (TriangulatedSurface & triangulatedSurface, bool filterExteriorParts=false) const Append Triangles to a TriangulatedSurface . |
std::unique_ptr< TriangulatedSurface > | getTriangulatedSurface () const |
bool | hasProjectionPlane () const test if a projection plane is defined |
bool | isInfinite (Vertex_handle vertex) const test if the vertex is infinite |
bool | isInfinite (Face_handle face) const test if the face has infinite vertex |
void | markDomains () fill nesting_level info in face info |
size_t | numTriangles () const Returns the number of finite faces. |
size_t | numVertices () const Returns the number of finite vertices. |
Kernel::Plane_3 | projectionPlane () const get the projection plane (OXY if not defined) |
void | setProjectionPlane (const Kernel::Plane_3 & projectionPlane) define projection plane |
Public Types Documentation#
typedef All_faces_iterator#
typedef CDT::All_faces_iterator SFCGAL::triangulate::ConstraintDelaunayTriangulation::All_faces_iterator;
typedef CDT#
typedef CGAL::Constrained_Delaunay_triangulation_2< Kernel, Triangulation_data_structure, CGAL::Exact_predicates_tag> SFCGAL::triangulate::ConstraintDelaunayTriangulation::CDT;
typedef Constrained_triangulation_face_base#
typedef CGAL::Constrained_triangulation_face_base_2<Kernel, Triangulation_face_base> SFCGAL::triangulate::ConstraintDelaunayTriangulation::Constrained_triangulation_face_base;
typedef Face_handle#
typedef CDT::Face_handle SFCGAL::triangulate::ConstraintDelaunayTriangulation::Face_handle;
typedef Finite_faces_iterator#
typedef CDT::Finite_faces_iterator SFCGAL::triangulate::ConstraintDelaunayTriangulation::Finite_faces_iterator;
typedef Triangulation_data_structure#
typedef CGAL::Triangulation_data_structure_2< Triangulation_vertex_base, Constrained_triangulation_face_base> SFCGAL::triangulate::ConstraintDelaunayTriangulation::Triangulation_data_structure;
typedef Triangulation_face_base#
typedef CGAL::Triangulation_face_base_with_info_2<FaceInfo, Kernel> SFCGAL::triangulate::ConstraintDelaunayTriangulation::Triangulation_face_base;
typedef Triangulation_vertex_base#
typedef CGAL::Triangulation_vertex_base_with_info_2<VertexInfo, Kernel> SFCGAL::triangulate::ConstraintDelaunayTriangulation::Triangulation_vertex_base;
typedef Vertex_handle#
typedef CDT::Vertex_handle SFCGAL::triangulate::ConstraintDelaunayTriangulation::Vertex_handle;
Public Functions Documentation#
function ConstraintDelaunayTriangulation#
default constructor
triangulate::ConstraintDelaunayTriangulation::ConstraintDelaunayTriangulation ()
function addConstraint#
add a vertex to the triangulation
void triangulate::ConstraintDelaunayTriangulation::addConstraint (
Vertex_handle source,
Vertex_handle target
)
function addVertex#
add a vertex to the triangulation
Vertex_handle triangulate::ConstraintDelaunayTriangulation::addVertex (
const Coordinate & position
)
function all_faces_begin#
get all face iterator
inline All_faces_iterator triangulate::ConstraintDelaunayTriangulation::all_faces_begin () const
function all_faces_end#
get all face iterator
inline All_faces_iterator triangulate::ConstraintDelaunayTriangulation::all_faces_end () const
function cdt [1/2]#
[advanced]get the CGAL object
inline CDT & triangulate::ConstraintDelaunayTriangulation::cdt ()
function cdt [2/2]#
[advanced]get the CGAL object
inline const CDT & triangulate::ConstraintDelaunayTriangulation::cdt () const
function clear#
clear the triangulation
void triangulate::ConstraintDelaunayTriangulation::clear ()
function finite_faces_begin#
get finite face iterator
inline Finite_faces_iterator triangulate::ConstraintDelaunayTriangulation::finite_faces_begin () const
function finite_faces_end#
get finite face iterator
inline Finite_faces_iterator triangulate::ConstraintDelaunayTriangulation::finite_faces_end () const
function getTriangles#
Append Triangles to a TriangulatedSurface .
void triangulate::ConstraintDelaunayTriangulation::getTriangles (
TriangulatedSurface & triangulatedSurface,
bool filterExteriorParts=false
) const
function getTriangulatedSurface#
std::unique_ptr< TriangulatedSurface > triangulate::ConstraintDelaunayTriangulation::getTriangulatedSurface () const
get the resulting TriangulatedSurface
function hasProjectionPlane#
test if a projection plane is defined
inline bool triangulate::ConstraintDelaunayTriangulation::hasProjectionPlane () const
function isInfinite [1/2]#
test if the vertex is infinite
inline bool triangulate::ConstraintDelaunayTriangulation::isInfinite (
Vertex_handle vertex
) const
function isInfinite [2/2]#
test if the face has infinite vertex
inline bool triangulate::ConstraintDelaunayTriangulation::isInfinite (
Face_handle face
) const
function markDomains#
fill nesting_level info in face info
void triangulate::ConstraintDelaunayTriangulation::markDomains ()
adapted from CGAL example
function numTriangles#
Returns the number of finite faces.
size_t triangulate::ConstraintDelaunayTriangulation::numTriangles () const
function numVertices#
Returns the number of finite vertices.
size_t triangulate::ConstraintDelaunayTriangulation::numVertices () const
function projectionPlane#
get the projection plane (OXY if not defined)
Kernel::Plane_3 triangulate::ConstraintDelaunayTriangulation::projectionPlane () const
function setProjectionPlane#
define projection plane
void triangulate::ConstraintDelaunayTriangulation::setProjectionPlane (
const Kernel::Plane_3 & projectionPlane
)
The documentation for this class was generated from the following file /builds/sfcgal/SFCGAL/src/detail/triangulate/ConstraintDelaunayTriangulation.h