Class SurfaceTriangulation

Class Documentation

class SurfaceTriangulation

Triangulate polygons to get a pure triangle mesh.

Triangulate n-gons into n-2 triangles. Finds the triangulation that minimizes the sum of squared triangle areas, or the one that maximizes the minimum angle. See liepa_2003_filling for details.

Public Types

enum class Objective

Triangulation objective.

Values:

enumerator MIN_AREA

minimize the sum of squared areas

enumerator MAX_ANGLE

maximize the minimum angle

Public Functions

SurfaceTriangulation(SurfaceMesh &mesh)

Construct with mesh.

void triangulate(Objective o = Objective::MIN_AREA)

Triangulate all faces.

void triangulate(Face f, Objective o = Objective::MIN_AREA)

Triangulate the Face f

Throws:

InvalidInputException – in case the input precondition is violated

Pre:

The input face is manifold

Public Members

enum pmp::SurfaceTriangulation::Objective objective_