pmp-library  1.0
SurfaceSmoothing Class Reference

A class for Laplacian smoothing. More...

#include <pmp/algorithms/SurfaceSmoothing.h>

Public Member Functions

 SurfaceSmoothing (SurfaceMesh &mesh)
 Construct with mesh to be smoothed.
 
void explicit_smoothing (unsigned int iters=10, bool use_uniform_laplace=false)
 Perform iters iterations of explicit Laplacian smoothing. More...
 
void implicit_smoothing (Scalar timestep=0.001, bool use_uniform_laplace=false, bool rescale=true)
 Perform implicit Laplacian smoothing with timestep. More...
 
void initialize (bool use_uniform_laplace=false)
 Initialize edge and vertex weights.
 

Detailed Description

A class for Laplacian smoothing.

See also [5] .

Member Function Documentation

void explicit_smoothing ( unsigned int  iters = 10,
bool  use_uniform_laplace = false 
)

Perform iters iterations of explicit Laplacian smoothing.

Decide whether to use uniform Laplacian or cotan Laplacian (default: cotan).

void implicit_smoothing ( Scalar  timestep = 0.001,
bool  use_uniform_laplace = false,
bool  rescale = true 
)

Perform implicit Laplacian smoothing with timestep.

Decide whether to use uniform Laplacian or cotan Laplacian (default: cotan). Decide whether to re-center and re-scale model after smoothing (default: true).