Skip to content

Class SFCGAL::triangulate::ConstraintDelaunayTriangulation

ClassList > SFCGAL > 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

SFCGAL::triangulate::ConstraintDelaunayTriangulation::ConstraintDelaunayTriangulation () 

function addConstraint

void SFCGAL::triangulate::ConstraintDelaunayTriangulation::addConstraint (
    Vertex_handle source,
    Vertex_handle target
) 

function addVertex

Vertex_handle SFCGAL::triangulate::ConstraintDelaunayTriangulation::addVertex (
    const Coordinate & position
) 

function all_faces_begin

inline All_faces_iterator SFCGAL::triangulate::ConstraintDelaunayTriangulation::all_faces_begin () const

function all_faces_end

inline All_faces_iterator SFCGAL::triangulate::ConstraintDelaunayTriangulation::all_faces_end () const

function cdt [1/2]

inline CDT & SFCGAL::triangulate::ConstraintDelaunayTriangulation::cdt () 

function cdt [2/2]

inline const CDT & SFCGAL::triangulate::ConstraintDelaunayTriangulation::cdt () const

function clear

void SFCGAL::triangulate::ConstraintDelaunayTriangulation::clear () 

function finite_faces_begin

inline Finite_faces_iterator SFCGAL::triangulate::ConstraintDelaunayTriangulation::finite_faces_begin () const

function finite_faces_end

inline Finite_faces_iterator SFCGAL::triangulate::ConstraintDelaunayTriangulation::finite_faces_end () const

function getTriangles

void SFCGAL::triangulate::ConstraintDelaunayTriangulation::getTriangles (
    TriangulatedSurface & triangulatedSurface,
    bool filterExteriorParts=false
) const

function getTriangulatedSurface

std::unique_ptr< TriangulatedSurface > SFCGAL::triangulate::ConstraintDelaunayTriangulation::getTriangulatedSurface () const

get the resulting TriangulatedSurface


function hasProjectionPlane

inline bool SFCGAL::triangulate::ConstraintDelaunayTriangulation::hasProjectionPlane () const

function isInfinite [1/2]

inline bool SFCGAL::triangulate::ConstraintDelaunayTriangulation::isInfinite (
    Vertex_handle vertex
) const

function isInfinite [2/2]

inline bool SFCGAL::triangulate::ConstraintDelaunayTriangulation::isInfinite (
    Face_handle face
) const

function markDomains

fill nesting_level info in face info

void SFCGAL::triangulate::ConstraintDelaunayTriangulation::markDomains () 

adapted from CGAL example


function numTriangles

size_t SFCGAL::triangulate::ConstraintDelaunayTriangulation::numTriangles () const

function numVertices

size_t SFCGAL::triangulate::ConstraintDelaunayTriangulation::numVertices () const

function projectionPlane

Kernel::Plane_3 SFCGAL::triangulate::ConstraintDelaunayTriangulation::projectionPlane () const

function setProjectionPlane

void SFCGAL::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