pmp-library  1.2.1
SurfaceSubdivision Class Reference

A class providing surface subdivision algorithms. More...

#include <pmp/algorithms/SurfaceSubdivision.h>

Public Member Functions

 SurfaceSubdivision (SurfaceMesh &mesh)
 Construct with mesh to be subdivided.
 
void catmull_clark ()
 Perform one step of Catmull-Clark subdivision. More...
 
void loop ()
 Perform one step of Loop subdivision. More...
 
void sqrt3 ()
 Perform one step of sqrt3 subdivision. More...
 

Detailed Description

A class providing surface subdivision algorithms.

Member Function Documentation

◆ catmull_clark()

void catmull_clark ( )

Perform one step of Catmull-Clark subdivision.

See [4] for details.

◆ loop()

void loop ( )

Perform one step of Loop subdivision.

See [15] for details.

Precondition
Requires a pure triangle mesh as input.
Exceptions
InvalidInputExceptionin case the input violates the precondition.

◆ sqrt3()

void sqrt3 ( )

Perform one step of sqrt3 subdivision.

See [13] for details.

Precondition
Requires a pure triangle mesh as input.
Exceptions
InvalidInputExceptionin case the input violates the precondition.