SFCGAL  2.3.0
Namespaces | Classes | Typedefs | Functions
SFCGAL::triangulate Namespace Reference

Triangulate dedicated namespace. More...

Namespaces

 detail
 Triangulate detail namespace.
 

Classes

class  ConstraintDelaunayTriangulation
 2DZ constraint Delaunay triangulation More...
 
struct  VertexInfo2
 vertex information with original coordinates More...
 

Typedefs

using Vertex_handle = ConstraintDelaunayTriangulation::Vertex_handle
 Type alias for Constraint Delaunay Triangulation vertex handle. More...
 

Functions

void triangulate (const MarkedPolyhedron &polyhedron, GeometrySet< 3 > &geometry)
 Triangulates a 3D polyhedron and adds the resulting triangles to a geometry set. More...
 
void triangulate (const CGAL::Polygon_with_holes_2< Kernel > &polygon, GeometrySet< 2 > &output)
 Triangulates a 2D polygon with holes and adds the resulting geometry to a set. More...
 
void triangulateCollection2DZ (const Geometry &g, ConstraintDelaunayTriangulation &triangulation)
 Constraint 2DZ Delaunay Triangulation for geometry collections (keep Z if defined, a projectionPlane may be provided) More...
 
void triangulate2DZ (const Geometry &g, ConstraintDelaunayTriangulation &triangulation)
 Constraint 2DZ Delaunay Triangulation (keep Z if defined, a projectionPlane may be provided) More...
 
auto triangulatePolygon3D (const Geometry &g, TriangulatedSurface &triangulatedSurface) -> void
 Triangulate 3D polygons in a Geometry. More...
 
void triangulatePolygon3D (const Triangle &triangle, TriangulatedSurface &triangulatedSurface)
 Triangulate a 3D Triangle (copy triangle) More...
 
void triangulatePolygon3D (const TriangulatedSurface &g, TriangulatedSurface &triangulatedSurface)
 Triangulate a 3D TriangulatedSurface (copy triangles) More...
 
void triangulatePolygon3D (const GeometryCollection &g, TriangulatedSurface &triangulatedSurface)
 Triangulate a geometry collection in 3D. More...
 
void triangulatePolygon3D (const Polygon &polygon, TriangulatedSurface &triangulatedSurface)
 Triangulate a 3D Polygon. More...
 
void triangulatePolygon3D (const PolyhedralSurface &polyhedralSurface, TriangulatedSurface &triangulatedSurface)
 Triangulate 3D polygons in a PolyhedralSurface. More...
 
void triangulatePolygon3D (const Solid &g, TriangulatedSurface &triangulatedSurface)
 Triangulate a Solid. More...
 
SFCGAL_API void opentriangulatePolygon3D (const GeometryCollection &g, TriangulatedSurface &triangulatedSurface)
 Triangulate a 3D MultiPolygon. More...
 

Detailed Description

Triangulate dedicated namespace.

Todo:
should be moved into algorithm namespace/folder

Typedef Documentation

Type alias for Constraint Delaunay Triangulation vertex handle.

Function Documentation

SFCGAL_API void SFCGAL::triangulate::opentriangulatePolygon3D ( const GeometryCollection &  g,
TriangulatedSurface &  triangulatedSurface 
)

Triangulate a 3D MultiPolygon.

Parameters
gInput geometry collection to triangulate
triangulatedSurfaceOutput triangulated surface
Todo:
unittest
SFCGAL_API void SFCGAL::triangulate::triangulate ( const MarkedPolyhedron &  polyhedron,
GeometrySet< 3 > &  geometry 
)

Triangulates a 3D polyhedron and adds the resulting triangles to a geometry set.

Populate the GeometrySet<3> geometry with the triangulation (list of triangles) of a polyhedron.

The input polyhedron must have its planes computed.

Parameters
[in]polyhedronThe input MarkedPolyhedron to triangulate.
[out]geometryThe GeometrySet<3> where the resulting triangles are added.
SFCGAL_API void SFCGAL::triangulate::triangulate ( const CGAL::Polygon_with_holes_2< Kernel > &  polygon,
GeometrySet< 2 > &  output 
)

Triangulates a 2D polygon with holes and adds the resulting geometry to a set.

Populate the GeometrySet<2> geometry with the triangulation (list of polygons) of a polygon.

Parameters
[in]polygonThe input CGAL::Polygon_with_holes_2 to triangulate.
[out]outputThe GeometrySet<2> where the resulting triangles/patches are added.
SFCGAL_API void SFCGAL::triangulate::triangulate2DZ ( const Geometry &  g,
ConstraintDelaunayTriangulation &  triangulation 
)

Constraint 2DZ Delaunay Triangulation (keep Z if defined, a projectionPlane may be provided)

Parameters
gThe input geometry to triangulate
triangulationThe triangulation object to fill
SFCGAL_API void SFCGAL::triangulate::triangulateCollection2DZ ( const Geometry &  g,
ConstraintDelaunayTriangulation &  triangulation 
)

Constraint 2DZ Delaunay Triangulation for geometry collections (keep Z if defined, a projectionPlane may be provided)

Parameters
gThe input geometry collection to triangulate
triangulationThe triangulation object to fill
SFCGAL_API auto SFCGAL::triangulate::triangulatePolygon3D ( const Geometry &  g,
TriangulatedSurface &  triangulatedSurface 
) -> void

Triangulate 3D polygons in a Geometry.

Parameters
ginput geometry
triangulatedSurfaceresulting TriangulatedSurface
SFCGAL_API void SFCGAL::triangulate::triangulatePolygon3D ( const Triangle &  triangle,
TriangulatedSurface &  triangulatedSurface 
)

Triangulate a 3D Triangle (copy triangle)

Parameters
triangleInput triangle to triangulate
triangulatedSurfaceOutput triangulated surface
Todo:
unittest
SFCGAL_API void SFCGAL::triangulate::triangulatePolygon3D ( const TriangulatedSurface &  g,
TriangulatedSurface &  triangulatedSurface 
)

Triangulate a 3D TriangulatedSurface (copy triangles)

Parameters
gInput triangulated surface to copy
triangulatedSurfaceOutput triangulated surface
Todo:
unittest
void SFCGAL::triangulate::triangulatePolygon3D ( const GeometryCollection &  g,
TriangulatedSurface &  triangulatedSurface 
)

Triangulate a geometry collection in 3D.

Parameters
gThe geometry collection to triangulate
triangulatedSurfaceThe resulting triangulated surface
SFCGAL_API void SFCGAL::triangulate::triangulatePolygon3D ( const Polygon &  polygon,
TriangulatedSurface &  triangulatedSurface 
)

Triangulate a 3D Polygon.

Parameters
polygonInput polygon to triangulate
triangulatedSurfaceOutput triangulated surface
Todo:
unittest
SFCGAL_API void SFCGAL::triangulate::triangulatePolygon3D ( const PolyhedralSurface &  polyhedralSurface,
TriangulatedSurface &  triangulatedSurface 
)

Triangulate 3D polygons in a PolyhedralSurface.

Parameters
polyhedralSurfaceInput polyhedral surface to triangulate
triangulatedSurfaceOutput triangulated surface
SFCGAL_API void SFCGAL::triangulate::triangulatePolygon3D ( const Solid &  g,
TriangulatedSurface &  triangulatedSurface 
)

Triangulate a Solid.

Parameters
gInput solid to triangulate
triangulatedSurfaceOutput triangulated surface
Todo:
unittest