public class TaubinSmoothing extends Object
Adapted by the Javascript code of mykolalysenko, MIT license. https://github.com/mikolalysenko/taubin-smooth/blob/master/smooth.js
| Modifier and Type | Class and Description |
|---|---|
static class |
TaubinSmoothing.TaubinWeightType
The weight to use when accumlating contribution for neighborhood edges in
Taubin smoothing.
|
| Constructor and Description |
|---|
TaubinSmoothing() |
| Modifier and Type | Method and Description |
|---|---|
static BufferMesh |
smooth(Mesh mesh)
Smooth the specified mesh using the Taubin smoothing algorithm, with
default parameters.
|
static BufferMesh |
smooth(Mesh mesh,
int iters,
double passBand)
Smooth the specified mesh using the Taubin smoothing algorithm, using
cotangent weights.
|
static BufferMesh |
smooth(Mesh mesh,
int iters,
double lambda,
double mu,
TaubinSmoothing.TaubinWeightType weightType)
Smooth the specified mesh using the Taubin smoothing algorithm.
|
public static final BufferMesh smooth(Mesh mesh)
mesh - the mesh to smooth.public static final BufferMesh smooth(Mesh mesh, int iters, double passBand)
mesh - the mesh to smooth.iters - the number of iterations to apply. Typical values: 10.passBand - the spatial frequency to use for smoothing. For instance 0.1.public static final BufferMesh smooth(Mesh mesh, int iters, double lambda, double mu, TaubinSmoothing.TaubinWeightType weightType)
mesh - the mesh to smooth.iters - the number of iterations to apply. Typical values: 10.lambda - the value of the lambda step in Taubin smoothing. Positive,
typical values are around 0.5;mu - the value of the mu step in Taubin smoothing. Negative,
typical values are around -0.5.weightType - the type of weights to use when summing contribution from
neighbor edges.Copyright © 2016–2023 ImgLib2. All rights reserved.