Lagrange
Loading...
Searching...
No Matches
TriangulationOptions Struct Reference

Public Types

enum class  Scheme { Earcut , CentroidFan }
 

Public Attributes

Scheme scheme = Scheme::Earcut
 Triangulation scheme to use.
 
bool preserve_edges = false
 If true, facets with exactly 2 vertices (edges) are preserved as-is instead of being removed during triangulation.
 
bool preserve_points = false
 If true, facets with exactly 1 vertex (points) are preserved as-is instead of being removed during triangulation.
 

Member Enumeration Documentation

◆ Scheme

enum class Scheme
strong
Enumerator
Earcut 

Use earcut algorithm to triangulate polygons.

CentroidFan 

Connect facet centroid to polygon edges to form a fan of triangles.


The documentation for this struct was generated from the following file: