SFCGAL 1.4.1
|
2DZ constraint Delaunay triangulation More...
#include <ConstraintDelaunayTriangulation.h>
Classes | |
struct | FaceInfo |
face information (depth) More... | |
struct | VertexInfo |
vertex info in triangulation More... | |
Public Types | |
typedef CGAL::Triangulation_vertex_base_with_info_2< VertexInfo, Kernel > | Triangulation_vertex_base |
typedef CGAL::Triangulation_face_base_with_info_2< FaceInfo, Kernel > | Triangulation_face_base |
typedef CGAL::Constrained_triangulation_face_base_2< Kernel, Triangulation_face_base > | Constrained_triangulation_face_base |
typedef CGAL::Triangulation_data_structure_2< Triangulation_vertex_base, Constrained_triangulation_face_base > | Triangulation_data_structure |
typedef CGAL::Constrained_Delaunay_triangulation_2< Kernel, Triangulation_data_structure, CGAL::Exact_predicates_tag > | CDT |
typedef CDT::Vertex_handle | Vertex_handle |
typedef CDT::Face_handle | Face_handle |
typedef CDT::All_faces_iterator | All_faces_iterator |
typedef CDT::Finite_faces_iterator | Finite_faces_iterator |
Public Member Functions | |
ConstraintDelaunayTriangulation () | |
default constructor | |
Vertex_handle | addVertex (const Coordinate &position) |
add a vertex to the triangulation | |
void | addConstraint (Vertex_handle source, Vertex_handle target) |
add a vertex to the triangulation | |
void | clear () |
clear the triangulation | |
size_t | numVertices () const |
Returns the number of finite vertices. | |
size_t | numTriangles () const |
Returns the number of finite faces. | |
bool | hasProjectionPlane () const |
test if a projection plane is defined | |
void | setProjectionPlane (const Kernel::Plane_3 &projectionPlane) |
define projection plane | |
Kernel::Plane_3 | projectionPlane () const |
get the projection plane (OXY if not 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 | getTriangles (TriangulatedSurface &triangulatedSurface, bool filterExteriorParts=false) const |
Append Triangles to a TriangulatedSurface. | |
std::unique_ptr< TriangulatedSurface > | getTriangulatedSurface () const |
get the resulting TriangulatedSurface | |
Finite_faces_iterator | finite_faces_begin () const |
get finite face iterator | |
Finite_faces_iterator | finite_faces_end () const |
get finite face iterator | |
All_faces_iterator | all_faces_begin () const |
get all face iterator | |
All_faces_iterator | all_faces_end () const |
get all face iterator | |
void | markDomains () |
fill nesting_level info in face info | |
CDT & | cdt () |
[advanced]get the CGAL object | |
const CDT & | cdt () const |
[advanced]get the CGAL object | |
2DZ constraint Delaunay triangulation
typedef CDT::All_faces_iterator SFCGAL::triangulate::ConstraintDelaunayTriangulation::All_faces_iterator |
typedef CGAL::Constrained_Delaunay_triangulation_2< Kernel, Triangulation_data_structure, CGAL::Exact_predicates_tag> SFCGAL::triangulate::ConstraintDelaunayTriangulation::CDT |
typedef CGAL::Constrained_triangulation_face_base_2<Kernel, Triangulation_face_base> SFCGAL::triangulate::ConstraintDelaunayTriangulation::Constrained_triangulation_face_base |
typedef CDT::Face_handle SFCGAL::triangulate::ConstraintDelaunayTriangulation::Face_handle |
typedef CDT::Finite_faces_iterator SFCGAL::triangulate::ConstraintDelaunayTriangulation::Finite_faces_iterator |
typedef CGAL::Triangulation_data_structure_2< Triangulation_vertex_base, Constrained_triangulation_face_base> SFCGAL::triangulate::ConstraintDelaunayTriangulation::Triangulation_data_structure |
typedef CGAL::Triangulation_face_base_with_info_2<FaceInfo, Kernel> SFCGAL::triangulate::ConstraintDelaunayTriangulation::Triangulation_face_base |
typedef CGAL::Triangulation_vertex_base_with_info_2<VertexInfo, Kernel> SFCGAL::triangulate::ConstraintDelaunayTriangulation::Triangulation_vertex_base |
typedef CDT::Vertex_handle SFCGAL::triangulate::ConstraintDelaunayTriangulation::Vertex_handle |
SFCGAL::triangulate::ConstraintDelaunayTriangulation::ConstraintDelaunayTriangulation | ( | ) |
default constructor
void SFCGAL::triangulate::ConstraintDelaunayTriangulation::addConstraint | ( | Vertex_handle | source, |
Vertex_handle | target | ||
) |
add a vertex to the triangulation
auto SFCGAL::triangulate::ConstraintDelaunayTriangulation::addVertex | ( | const Coordinate & | position | ) |
add a vertex to the triangulation
|
inline |
get all face iterator
|
inline |
get all face iterator
|
inline |
[advanced]get the CGAL object
|
inline |
[advanced]get the CGAL object
void SFCGAL::triangulate::ConstraintDelaunayTriangulation::clear | ( | ) |
clear the triangulation
|
inline |
get finite face iterator
|
inline |
get finite face iterator
void SFCGAL::triangulate::ConstraintDelaunayTriangulation::getTriangles | ( | TriangulatedSurface & | triangulatedSurface, |
bool | filterExteriorParts = false |
||
) | const |
Append Triangles to a TriangulatedSurface.
auto SFCGAL::triangulate::ConstraintDelaunayTriangulation::getTriangulatedSurface | ( | ) | const |
get the resulting TriangulatedSurface
|
inline |
test if a projection plane is defined
|
inline |
test if the face has infinite vertex
|
inline |
test if the vertex is infinite
void SFCGAL::triangulate::ConstraintDelaunayTriangulation::markDomains | ( | ) |
fill nesting_level info in face info
adapted from CGAL example
auto SFCGAL::triangulate::ConstraintDelaunayTriangulation::numTriangles | ( | ) | const |
Returns the number of finite faces.
auto SFCGAL::triangulate::ConstraintDelaunayTriangulation::numVertices | ( | ) | const |
Returns the number of finite vertices.
auto SFCGAL::triangulate::ConstraintDelaunayTriangulation::projectionPlane | ( | ) | const |
get the projection plane (OXY if not defined)
void SFCGAL::triangulate::ConstraintDelaunayTriangulation::setProjectionPlane | ( | const Kernel::Plane_3 & | projectionPlane | ) |
define projection plane