SFCGAL
Classes | Public Types | Public Member Functions | List of all members
SFCGAL::triangulate::ConstraintDelaunayTriangulation Class Reference

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, KernelTriangulation_vertex_base
 
typedef CGAL::Triangulation_face_base_with_info_2< FaceInfo, KernelTriangulation_face_base
 
typedef CGAL::Constrained_triangulation_face_base_2< Kernel, Triangulation_face_baseConstrained_triangulation_face_base
 
typedef CGAL::Triangulation_data_structure_2< Triangulation_vertex_base, Constrained_triangulation_face_baseTriangulation_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 More...
 
Vertex_handle addVertex (const Coordinate &position)
 add a vertex to the triangulation More...
 
void addConstraint (Vertex_handle source, Vertex_handle target)
 add a vertex to the triangulation More...
 
void clear ()
 clear the triangulation More...
 
size_t numVertices () const
 Returns the number of finite vertices. More...
 
size_t numTriangles () const
 Returns the number of finite faces. More...
 
bool hasProjectionPlane () const
 test if a projection plane is defined More...
 
void setProjectionPlane (const Kernel::Plane_3 &projectionPlane)
 define projection plane More...
 
Kernel::Plane_3 projectionPlane () const
 get the projection plane (OXY if not defined) More...
 
bool isInfinite (Vertex_handle vertex) const
 test if the vertex is infinite More...
 
bool isInfinite (Face_handle face) const
 test if the face has infinite vertex More...
 
void getTriangles (TriangulatedSurface &triangulatedSurface, bool filterExteriorParts=false) const
 Append Triangles to a TriangulatedSurface. More...
 
std::unique_ptr< TriangulatedSurfacegetTriangulatedSurface () const
 get the resulting TriangulatedSurface More...
 
Finite_faces_iterator finite_faces_begin () const
 get finite face iterator More...
 
Finite_faces_iterator finite_faces_end () const
 get finite face iterator More...
 
All_faces_iterator all_faces_begin () const
 get all face iterator More...
 
All_faces_iterator all_faces_end () const
 get all face iterator More...
 
void markDomains ()
 fill nesting_level info in face info More...
 
CDTcdt ()
 [advanced]get the CGAL object More...
 
const CDTcdt () const
 [advanced]get the CGAL object More...
 

Detailed Description

2DZ constraint Delaunay triangulation

Member Typedef Documentation

◆ All_faces_iterator

◆ CDT

typedef CGAL::Constrained_Delaunay_triangulation_2< Kernel, Triangulation_data_structure, CGAL::Exact_predicates_tag> SFCGAL::triangulate::ConstraintDelaunayTriangulation::CDT

◆ Constrained_triangulation_face_base

◆ Face_handle

◆ Finite_faces_iterator

◆ Triangulation_data_structure

◆ Triangulation_face_base

◆ Triangulation_vertex_base

◆ Vertex_handle

Constructor & Destructor Documentation

◆ ConstraintDelaunayTriangulation()

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

default constructor

Member Function Documentation

◆ addConstraint()

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

add a vertex to the triangulation

◆ addVertex()

auto SFCGAL::triangulate::ConstraintDelaunayTriangulation::addVertex ( const Coordinate position)

add a vertex to the triangulation

◆ all_faces_begin()

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

get all face iterator

◆ all_faces_end()

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

get all face iterator

◆ cdt() [1/2]

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

[advanced]get the CGAL object

◆ cdt() [2/2]

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

[advanced]get the CGAL object

◆ clear()

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

clear the triangulation

◆ finite_faces_begin()

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

get finite face iterator

◆ finite_faces_end()

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

get finite face iterator

◆ getTriangles()

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

Append Triangles to a TriangulatedSurface.

◆ getTriangulatedSurface()

auto SFCGAL::triangulate::ConstraintDelaunayTriangulation::getTriangulatedSurface ( ) const

get the resulting TriangulatedSurface

◆ hasProjectionPlane()

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

test if a projection plane is defined

◆ isInfinite() [1/2]

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

test if the face has infinite vertex

◆ isInfinite() [2/2]

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

test if the vertex is infinite

◆ markDomains()

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

fill nesting_level info in face info

adapted from CGAL example

◆ numTriangles()

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

Returns the number of finite faces.

◆ numVertices()

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

Returns the number of finite vertices.

◆ projectionPlane()

auto SFCGAL::triangulate::ConstraintDelaunayTriangulation::projectionPlane ( ) const

get the projection plane (OXY if not defined)

◆ setProjectionPlane()

void SFCGAL::triangulate::ConstraintDelaunayTriangulation::setProjectionPlane ( const Kernel::Plane_3 &  projectionPlane)

define projection plane