{
 "id": "taubin-smoothing",
 "title": "Taubin Smoothing",
 "aliases": [],
 "domain": "geometry",
 "subdomain": "mesh smoothing",
 "stage": "geometry",
 "realtime": "interactive",
 "platforms": [
  "cpu",
  "webgl2",
  "webgpu",
  "blender",
  "python"
 ],
 "year_introduced": 1995,
 "inputs": [
  "mesh"
 ],
 "outputs": [
  "mesh"
 ],
 "style": "both",
 "dynamic": "static",
 "summary": "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.",
 "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_use": "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.",
 "cost": {
  "class": "cheap",
  "notes": "Each iteration is one parallel sweep over vertices."
 },
 "failure_modes": [
  "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"
 ],
 "sources": [
  {
   "role": "primary",
   "key": "doi:10.1109/iccv.1995.466848",
   "type": "paper",
   "title": "Curve and surface smoothing without shrinkage",
   "authors": [
    "G. Taubin"
   ],
   "year": null,
   "venue": "Proceedings of IEEE International Conference on Computer Vision",
   "url": "https://doi.org/10.1109/iccv.1995.466848",
   "ids": {
    "doi": "10.1109/iccv.1995.466848"
   },
   "license": null,
   "extra": {
    "csl_type": "proceedings-article"
   },
   "provenance": {
    "title": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1109/iccv.1995.466848",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1109/iccv.1995.466848",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1109/iccv.1995.466848",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1109/iccv.1995.466848",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1109/iccv.1995.466848",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": 1,
   "__bib": "taubincurve"
  }
 ],
 "presets": [
  {
   "id": "taubin-smoothing-specimen",
   "title": "Toy 2D curve: Laplacian smoothing shrinks, Taubin lambda|mu keeps size",
   "runtime": "glsl-fragment",
   "params": {
    "N": 40,
    "ITERS": 60,
    "LAMBDA": 0.6,
    "MU": -0.64
   },
   "code": "// Toy 2D polyline version: grey = noisy closed curve, red = plain Laplacian smoothing (shrinks), green = Taubin lambda|mu smoothing.\nconst int N = 40;\nconst int ITERS = 60;\nconst float LAMBDA = 0.6;\nconst float MU = -0.64;\nfloat h(float n) { return fract(sin(n * 78.233) * 43758.5453); }\nfloat segd(vec2 p, vec2 a, vec2 b) {\n    vec2 pa = p - a, ba = b - a;\n    return length(pa - ba * clamp(dot(pa, ba) / dot(ba, ba), 0.0, 1.0));\n}\nvoid smoothStep(inout vec2 p[N], float k) {\n    vec2 q[N];\n    for (int i = 0; i < N; i++) {\n        vec2 avg = 0.5 * (p[(i + N - 1) % N] + p[(i + 1) % N]);\n        q[i] = p[i] + k * (avg - p[i]);\n    }\n    for (int i = 0; i < N; i++) p[i] = q[i];\n}\nvoid mainImage(out vec4 fragColor, in vec2 fragCoord) {\n    vec2 uv = (fragCoord - 0.5 * iResolution.xy) / iResolution.y;\n    vec2 a[N], b[N], c[N];\n    for (int i = 0; i < N; i++) {\n        float t = 6.2831853 * float(i) / float(N);\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);\n        a[i] = vec2(cos(t), sin(t)) * r; b[i] = a[i]; c[i] = a[i];\n    }\n    for (int it = 0; it < ITERS; it++) {\n        smoothStep(b, LAMBDA);\n        smoothStep(c, LAMBDA); smoothStep(c, MU);\n    }\n    float da = 1e9, db = 1e9, dc = 1e9;\n    for (int i = 0; i < N; i++) {\n        int j = (i + 1) % N;\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]));\n    }\n    vec3 col = vec3(0.06, 0.07, 0.1);\n    col = mix(col, vec3(0.5), smoothstep(0.004, 0.002, da));\n    col = mix(col, vec3(1.0, 0.35, 0.3), smoothstep(0.006, 0.0035, db));\n    col = mix(col, vec3(0.35, 1.0, 0.5), smoothstep(0.006, 0.0035, dc));\n    fragColor = vec4(pow(col, vec3(0.8)), 1.0);\n}\n",
   "basis": "original",
   "license_note": "written for this index",
   "execution_fidelity": "conceptual-diagram",
   "proof": {
    "kind": "rendered",
    "label": "rendered 2026-11-29",
    "ok": true,
    "proof": {
     "ok": true,
     "technique": "taubin-smoothing",
     "runtime": "glsl-fragment",
     "checked_at": "2026-11-29T15:51:50.471Z",
     "renderer": "Chromium 145.0.7632.6 headless, WebGL2 via ANGLE/SwiftShader, 512×512, iTime=1.5",
     "stats": {
      "mean": 0.1465,
      "std": 0.1243,
      "unique_colors": 119
     },
     "image": "/specimens/taubin-smoothing-specimen.webp",
     "reason": null
    }
   }
  }
 ],
 "related": [
  "tufted-laplacian",
  "isotropic-remeshing",
  "marching-cubes"
 ],
 "extends": [],
 "supersedes": [],
 "combines_with": [
  {
   "id": "marching-cubes",
   "why": "Removes the staircase noise of voxel input."
  },
  {
   "id": "tufted-laplacian",
   "why": "A Laplacian built for messy meshes can replace the uniform one."
  }
 ],
 "provenance": {
  "prose": "original text written for this index (research draft, editorially reviewed)",
  "sources_verified_at": "2026-11-29T15:51:27.588Z",
  "draft": "data/drafts/geometry/taubin-smoothing.json"
 },
 "solves": [
  "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"
 ],
 "authority": "Taubin",
 "url": "https://texelatlas.vercel.app/t/taubin-smoothing/",
 "execution_fidelity": "conceptual-diagram",
 "fidelity_label": "Visual Diagram",
 "benchmark_eligible": false,
 "gpu_weight": {
  "weight_x": 989.39,
  "tier": "extreme",
  "p50_ms": 32.551,
  "p95_ms": 32.8625,
  "baseline_p50_ms": 0.0329,
  "gpu": "Tesla T4/PCIe/SSE2",
  "resolution": "1920x1080",
  "method": "opengl-timer-query",
  "frames": 20,
  "preset_id": "taubin-smoothing-specimen",
  "execution_fidelity": "conceptual-diagram",
  "fidelity_label": "Visual Diagram",
  "benchmark_eligible": false,
  "generated_at": "2026-11-30T21:07:47Z",
  "l4": {
   "weight_x": 725.36,
   "tier": "extreme",
   "p50_ms": 11.5333,
   "p95_ms": 11.5374,
   "speedup_x": 2.82,
   "gpu": "NVIDIA L4/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0159
  },
  "a100": {
   "weight_x": 643.7,
   "tier": "extreme",
   "p50_ms": 18.5385,
   "p95_ms": 18.5388,
   "speedup_x": 1.76,
   "gpu": "NVIDIA A100-SXM4-40GB/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0288
  }
 }
}