SFCGAL 2.3.0
SFCGAL::triangulate Namespace Reference

Triangulate dedicated namespace. More...

Namespaces

namespace  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.

Functions

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

Detailed Description

Triangulate dedicated namespace.

Todo
should be moved into algorithm namespace/folder

Typedef Documentation

◆ Vertex_handle

Type alias for Constraint Delaunay Triangulation vertex handle.

Function Documentation

◆ opentriangulatePolygon3D()

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

◆ triangulate() [1/2]

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.

◆ triangulate() [2/2]

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.

◆ triangulate2DZ()

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

◆ triangulateCollection2DZ()

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

◆ triangulatePolygon3D() [1/7]

SFCGAL_API auto SFCGAL::triangulate::triangulatePolygon3D ( const Geometry & g,
TriangulatedSurface & triangulatedSurface ) -> void

Triangulate 3D polygons in a Geometry.

Parameters
ginput geometry
triangulatedSurfaceresulting TriangulatedSurface

◆ triangulatePolygon3D() [2/7]

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

◆ triangulatePolygon3D() [3/7]

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

◆ triangulatePolygon3D() [4/7]

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

◆ triangulatePolygon3D() [5/7]

SFCGAL_API void SFCGAL::triangulate::triangulatePolygon3D ( const Solid & g,
TriangulatedSurface & triangulatedSurface )

Triangulate a Solid.

Parameters
gInput solid to triangulate
triangulatedSurfaceOutput triangulated surface
Todo
unittest

◆ triangulatePolygon3D() [6/7]

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

◆ triangulatePolygon3D() [7/7]

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