Taubin Smoothing
Low-pass filters a mesh with alternating shrinking and inflating Laplacian steps, so noise disappears without the volume loss of plain Laplacian smoothing. Cheap and local.
In the family Geometry, meshing & signed distance fields, mesh smoothing
Where it runs
Built inOfficial add-onPluginNone foundNot researched
| Engine | Support | How |
|---|---|---|
| three.js r187 | None found | |
| Babylon.js 9.38.0 | None found | |
| Godot 4.7 | None found | No built-in Taubin non-shrinking mesh smoothing operator. |
| Unity | None found | |
| Unreal 5.7 | None found | |
| Blender 5.2 | None found | |
| WebGPU W3C | None found | |
| Metal | None found |
How it works
Plain Laplacian smoothing moves every vertex a fraction lambda toward the centroid of its neighbours; it reduces noise but also shrinks the shape. Taubin's trick alternates this with a second step of negative factor mu (with |mu| slightly larger than lambda): the second step expands a little. Together the two steps form a polynomial filter that damps high frequencies yet leaves low frequencies nearly untouched. The pass-band frequency k_pb = 1/lambda + 1/mu is chosen small, e.g. 0.1, which fixes mu given lambda. Iterate 10 to 50 times. Weights can be uniform, cotangent or other; with cotangent weights the filter is closer to a geometric flow. The method is a signal-processing view of mesh fairing.
When to choose it
Reach for it when
- laplacian smoothing makes the mesh shrink
- denoise scanned mesh while preserving volume
- remove surface noise without collapsing the shape
- smooth marching cubes output staircase artifacts
Choose it for denoising scan meshes, fixing marching-cubes stair-steps and smoothing sculpts when volume should stay almost fixed. Prefer Isotropic Remeshing when you also want triangles evened out, Screened Poisson Surface Reconstruction to regularise from points, and bilateral or feature-preserving filters when sharp edges must stay.
Field marks
- Sharp edges and fine details smooth away like any isotropic low-pass filter
- Many iterations on irregular triangulations drift or clump vertices tangentially
- Needs good parameters: mu too small keeps shrinking, too large oscillates
- Open boundaries shrink unless pinned
Presets
Toy 2D curve: Laplacian smoothing shrinks, Taubin lambda|mu keeps size
{
"N": 40,
"ITERS": 60,
"LAMBDA": 0.6,
"MU": -0.64
}Show GLSL (42 lines)
// Toy 2D polyline version: grey = noisy closed curve, red = plain Laplacian smoothing (shrinks), green = Taubin lambda|mu smoothing.
const int N = 40;
const int ITERS = 60;
const float LAMBDA = 0.6;
const float MU = -0.64;
float h(float n) { return fract(sin(n * 78.233) * 43758.5453); }
float segd(vec2 p, vec2 a, vec2 b) {
vec2 pa = p - a, ba = b - a;
return length(pa - ba * clamp(dot(pa, ba) / dot(ba, ba), 0.0, 1.0));
}
void smoothStep(inout vec2 p[N], float k) {
vec2 q[N];
for (int i = 0; i < N; i++) {
vec2 avg = 0.5 * (p[(i + N - 1) % N] + p[(i + 1) % N]);
q[i] = p[i] + k * (avg - p[i]);
}
for (int i = 0; i < N; i++) p[i] = q[i];
}
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
vec2 uv = (fragCoord - 0.5 * iResolution.xy) / iResolution.y;
vec2 a[N], b[N], c[N];
for (int i = 0; i < N; i++) {
float t = 6.2831853 * float(i) / float(N);
float r = 0.34 * (1.0 + 0.25 * sin(3.0 * t) + 0.12 * cos(5.0 * t)) + 0.035 * (h(float(i)) - 0.5);
a[i] = vec2(cos(t), sin(t)) * r; b[i] = a[i]; c[i] = a[i];
}
for (int it = 0; it < ITERS; it++) {
smoothStep(b, LAMBDA);
smoothStep(c, LAMBDA); smoothStep(c, MU);
}
float da = 1e9, db = 1e9, dc = 1e9;
for (int i = 0; i < N; i++) {
int j = (i + 1) % N;
da = min(da, segd(uv, a[i], a[j])); db = min(db, segd(uv, b[i], b[j])); dc = min(dc, segd(uv, c[i], c[j]));
}
vec3 col = vec3(0.06, 0.07, 0.1);
col = mix(col, vec3(0.5), smoothstep(0.004, 0.002, da));
col = mix(col, vec3(1.0, 0.35, 0.3), smoothstep(0.006, 0.0035, db));
col = mix(col, vec3(0.35, 1.0, 0.5), smoothstep(0.006, 0.0035, dc));
fragColor = vec4(pow(col, vec3(0.8)), 1.0);
}
Attribution: written for this index
Measured GPU weight & timing
| Preset | GPU | Weight / p50 / p95 | Method |
|---|---|---|---|
| taubin-smoothing-specimen | Tesla T4 1920x1080 | 989× baseline (extreme) · 32.6 ms / 32.9 ms | opengl-timer-query · 20 frames · GPU Weight Atlas · Colab T4 sweep |
| taubin-smoothing-specimen | NVIDIA L4 1920x1080 | 725× baseline (extreme) · 11.5 ms / 11.5 ms · 2.8× faster on L4 | opengl-timer-query · Cross-architecture validation |
| taubin-smoothing-specimen | NVIDIA A100-SXM4-40GB 1920x1080 | 644× baseline (extreme) · 18.5 ms / 18.5 ms · 1.8× faster on A100 | opengl-timer-query · Cross-architecture validation |
Crosses
- Marching Cubes: Removes the staircase noise of voxel input.
- Tufted Cover Laplacian: A Laplacian built for messy meshes can replace the uniform one.
Sources
- primaryG. Taubin. Curve and surface smoothing without shrinkage. Proceedings of IEEE International Conference on Computer Vision.Verified via crossref · 2026-11-29doi:10.1109/iccv.1995.466848