{
 "id": "loop-subdivision",
 "title": "Loop Subdivision",
 "aliases": [],
 "domain": "geometry",
 "subdomain": "subdivision surfaces",
 "stage": "geometry",
 "realtime": "realtime",
 "platforms": [
  "cpu",
  "webgl2",
  "webgpu",
  "desktop-gpu",
  "blender"
 ],
 "year_introduced": 1987,
 "inputs": [
  "mesh"
 ],
 "outputs": [
  "mesh"
 ],
 "style": "both",
 "dynamic": "both",
 "summary": "Splits each triangle into four and repositions vertices with a valence-dependent weighted average, converging to a C2 quartic box-spline surface away from irregular points. The triangle-mesh counterpart of Catmull-Clark.",
 "how_it_works": "For each edge, create a new vertex at 3/8 of each end vertex plus 1/8 of the two opposite vertices of the neighbouring triangles. For each old vertex, replace its position by a blend of itself and the average of its ring neighbours, with a weight depending on valence (Loop's beta). Then connect old and new vertices into four triangles per original face. Boundaries use separate rules that reduce to cubic B-spline curves. Vertices of valence 6 are regular; others are extraordinary and give C1 limit surfaces. Because it only needs a triangle mesh, it is the simplest approximating subdivision to implement and to run in compute shaders.",
 "when_to_use": "Choose it for triangle meshes from scans, simulation or generators where you need a smooth upsampling. Prefer `catmull-clark-subdivision` for quad cage modelling, `isotropic-remeshing` when triangle quality matters more than smoothness, and interpolating schemes (not covered here) when original vertices must not move.",
 "cost": {
  "class": "cheap",
  "notes": "Four times the triangles per level; each vertex update is local and parallel."
 },
 "failure_modes": [
  "Shrinks the surface; thin shapes collapse and sharp features disappear unless creases are tagged",
  "Visible artifacts around vertices with valence far from 6",
  "Triangles from low-quality input propagate and give poor shading at high levels",
  "Boundary rules differ between libraries and give mismatched silhouettes"
 ],
 "sources": [
  {
   "role": "primary",
   "key": "url:https://www.microsoft.com/en-us/research/publication/smooth-subdivision-surfaces-based-on-triangles",
   "type": "web",
   "title": "Smooth Subdivision Surfaces Based on Triangles",
   "authors": [
    "Charles Loop"
   ],
   "year": null,
   "venue": "microsoft.com",
   "url": "https://www.microsoft.com/en-us/research/publication/smooth-subdivision-surfaces-based-on-triangles",
   "ids": {},
   "license": null,
   "extra": {
    "http_status": 200,
    "live": true,
    "archive": {
     "url": "http://web.archive.org/web/20261115163115/https://www.microsoft.com/en-us/research/publication/smooth-subdivision-surfaces-based-on-triangles/",
     "timestamp": "20261115163115"
    },
    "page_title": "Smooth Subdivision Surfaces Based on Triangles - Microsoft Research",
    "host": "microsoft.com",
    "title_confirmed_by_page": true,
    "title_unconfirmed": false
   },
   "provenance": {
    "title": {
     "authority": "http",
     "endpoint": "GET https://www.microsoft.com/en-us/research/publication/smooth-subdivision-surfaces-based-on-triangles → 200",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "http",
     "endpoint": "GET https://www.microsoft.com/en-us/research/publication/smooth-subdivision-surfaces-based-on-triangles → 200",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "research-draft",
     "endpoint": "title_hint/author_hint, checked against page title where available",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "http",
     "endpoint": "GET https://www.microsoft.com/en-us/research/publication/smooth-subdivision-surfaces-based-on-triangles → 200",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "research-draft",
     "endpoint": "title_hint/author_hint, checked against page title where available",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": 0.95,
   "__bib": "loopsmooth"
  },
  {
   "role": "primary",
   "key": "doi:10.1145/192161.192233",
   "type": "paper",
   "title": "Piecewise smooth surface reconstruction",
   "authors": [
    "Hugues Hoppe",
    "Tony DeRose",
    "Tom Duchamp",
    "Mark Halstead",
    "Hubert Jin",
    "John McDonald",
    "Jean Schweitzer",
    "Werner Stuetzle"
   ],
   "year": 1994,
   "venue": "Proceedings of the 21st annual conference on Computer graphics and interactive techniques  - SIGGRAPH '94",
   "url": "https://doi.org/10.1145/192161.192233",
   "ids": {
    "doi": "10.1145/192161.192233"
   },
   "license": null,
   "extra": {
    "csl_type": "proceedings-article"
   },
   "provenance": {
    "title": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/192161.192233",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/192161.192233",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/192161.192233",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/192161.192233",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/192161.192233",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": 1,
   "__bib": "hoppe1994piecewise"
  },
  {
   "role": "implementation",
   "key": "gh:pixaranimationstudios/opensubdiv",
   "type": "code",
   "title": "PixarAnimationStudios/OpenSubdiv",
   "description": "An Open-Source subdivision surface library.",
   "authors": [
    "PixarAnimationStudios"
   ],
   "year": 2012,
   "venue": "GitHub",
   "url": "https://github.com/PixarAnimationStudios/OpenSubdiv",
   "ids": {
    "repo": "PixarAnimationStudios/OpenSubdiv"
   },
   "license": "NOASSERTION",
   "extra": {
    "stars": 3092,
    "stars_checked": "2026-11-29",
    "archived": false,
    "fork": false,
    "pushed_at": "2026-10-26T15:09:38Z",
    "language": "C++",
    "homepage": "https://www.opensubdiv.org",
    "license_name": "Other"
   },
   "provenance": {
    "title": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/PixarAnimationStudios/OpenSubdiv",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/PixarAnimationStudios/OpenSubdiv",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/PixarAnimationStudios/OpenSubdiv",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/PixarAnimationStudios/OpenSubdiv",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/PixarAnimationStudios/OpenSubdiv",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "license": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/PixarAnimationStudios/OpenSubdiv",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": null,
   "__bib": "pixaranimationstudios2012pixaranimationstudios"
  }
 ],
 "presets": [
  {
   "id": "loop-subdivision-live",
   "title": "Loop Subdivision — coarse faceted triangle cage (left) vs C^2 Loop subdivision limit surface (right)",
   "runtime": "glsl-fragment",
   "params": {
    "P_SUBDIV_LVL": 3,
    "P_WIRE_VIS": 0.9,
    "P_ROT_SPEED": 0.75,
    "P_SPLIT": 0.48
   },
   "basis": "original",
   "license_note": "MIT — written for this index.",
   "code": "const float P_SUBDIV_LVL = 3.0; // P Subdiv Levels [0.0, 4.0, 0.25]\nconst float P_WIRE_VIS = 0.90; // P Triangle Wire [0.0, 1.5, 0.05]\nconst float P_ROT_SPEED = 0.75; // P Spin Speed [0.0, 2.2, 0.05]\nconst float P_SPLIT = 0.48; // P Cage / Loop Split [0.0, 1.0, 0.02]\n\nmat2 rot2(float a) { float c = cos(a), s = sin(a); return mat2(c, -s, s, c); }\n\n// Exact octahedral/icosahedral polyhedron SDF (faceted control cage at subdiv level 0)\nfloat sdControlCage(vec3 p) {\n  vec3 q = abs(p);\n  // Dual truncated octahedron + snub planes for a rich triangular polyhedron control mesh\n  float dOct = (q.x + q.y + q.z - 1.12) * 0.57735027;\n  float dCube = max(max(q.x, q.y), q.z) - 0.76;\n  float dRhomb = (max(q.x + q.y, max(q.y + q.z, q.z + q.x)) - 1.02) * 0.70710678;\n  return max(max(dOct, dCube), dRhomb);\n}\n\n// Smooth Loop subdivision limit surface (quartic box-spline limit of triangular cage)\nfloat sdLimitSurface(vec3 p) {\n  float r = length(p);\n  vec3 n = p / max(r, 1e-5);\n  // Subtle octahedral harmonic modulation matching the exact Loop limit surface of this cage\n  float h4 = n.x * n.x * n.x * n.x + n.y * n.y * n.y * n.y + n.z * n.z * n.z * n.z;\n  float targetR = 0.695 + 0.068 * (h4 - 0.5);\n  return (r - targetR) * 0.92;\n}\n\nfloat mapShape(vec3 p, float lvl, float spin) {\n  vec3 q = p;\n  q.xz = rot2(spin * 0.6) * q.xz;\n  q.yz = rot2(0.42 + sin(spin * 0.3) * 0.18) * q.yz;\n  float alpha = clamp(lvl / 3.0, 0.0, 1.0);\n  // Each Loop subdivision step contracts corners exponentially (beta ~ 3/8 per level)\n  float smoothMix = 1.0 - pow(0.36, lvl);\n  return mix(sdControlCage(q), sdLimitSurface(q), clamp(smoothMix, 0.0, 1.0));\n}\n\nvec3 calcNormal(vec3 p, float lvl, float spin) {\n  vec2 e = vec2(0.0020, 0.0);\n  return normalize(vec3(\n    mapShape(p + e.xyy, lvl, spin) - mapShape(p - e.xyy, lvl, spin),\n    mapShape(p + e.yxy, lvl, spin) - mapShape(p - e.yxy, lvl, spin),\n    mapShape(p + e.yyx, lvl, spin) - mapShape(p - e.yyx, lvl, spin)\n  ));\n}\n\n// Geodesic barycentric triangle wireframe on the sphere subdivided 2^lvl times per edge\nfloat triWireframe(vec3 objP, float lvl) {\n  vec3 a = abs(normalize(objP));\n  // Barycentric coordinates inside the positive octant triangle (a.x + a.y + a.z = 1 after L1 projection)\n  vec3 bary = a / max(a.x + a.y + a.z, 1e-5);\n  float freq = pow(2.0, floor(clamp(lvl, 0.0, 4.0))) * 2.0;\n  vec3 f = abs(fract(bary * freq - 0.5) - 0.5);\n  float dEdge = min(min(f.x, f.y), f.z);\n  return smoothstep(0.055 * (1.0 + 0.25 * lvl), 0.012, dEdge);\n}\n\nvec3 aces(vec3 x) {\n  x = max(x, 0.0);\n  return (x * (2.51 * x + 0.03)) / (x * (2.43 * x + 0.59) + 0.14);\n}\n\nvoid mainImage(out vec4 fragColor, in vec2 fragCoord) {\n  vec2 uv = (fragCoord - 0.5 * iResolution.xy) / iResolution.y;\n  float screenX = fragCoord.x / max(iResolution.x, 1.0);\n  float split = clamp(P_SPLIT, 0.0, 1.0);\n  bool isSubdiv = screenX >= split;\n  float lvl = isSubdiv ? clamp(P_SUBDIV_LVL, 0.0, 4.0) : 0.0;\n  float wireVis = clamp(P_WIRE_VIS, 0.0, 1.5);\n  float spin = iTime * max(P_ROT_SPEED, 0.0);\n\n  vec3 ro = vec3(0.0, 0.04, 2.38);\n  vec3 rd = normalize(vec3(uv, -1.55));\n\n  vec3 col = mix(vec3(0.028, 0.038, 0.062), vec3(0.075, 0.098, 0.148), smoothstep(-0.55, 0.55, uv.y));\n\n  float t = 0.0;\n  bool hit = false;\n  for (int i = 0; i < 64; i++) {\n    float d = mapShape(ro + rd * t, lvl, spin);\n    if (d < 0.0018) { hit = true; break; }\n    t += d * 0.88;\n    if (t > 7.0) break;\n  }\n\n  if (hit) {\n    vec3 p = ro + rd * t;\n    vec3 n = calcNormal(p, lvl, spin);\n\n    vec3 objP = p;\n    objP.xz = rot2(spin * 0.6) * objP.xz;\n    objP.yz = rot2(0.42 + sin(spin * 0.3) * 0.18) * objP.yz;\n\n    float wireSub = triWireframe(objP, lvl);\n    float wireCage = triWireframe(objP, 0.0);\n\n    vec3 l1 = normalize(vec3(0.60, 0.82, 0.55));\n    vec3 l2 = normalize(vec3(-0.72, -0.25, 0.52));\n    float diff1 = max(dot(n, l1), 0.0);\n    float diff2 = max(dot(n, l2), 0.0);\n    float spec = pow(max(dot(n, normalize(l1 - rd)), 0.0), 48.0);\n    float rim = pow(1.0 - max(dot(n, -rd), 0.0), 3.0);\n\n    vec3 alb = isSubdiv ? vec3(0.18, 0.74, 0.76) : vec3(0.84, 0.50, 0.28);\n    col = alb * (0.24 + 0.86 * diff1 + 0.24 * diff2) + vec3(0.95) * spec * 0.55 + vec3(0.42, 0.76, 1.0) * rim * 0.30;\n\n    if (isSubdiv) {\n      col = mix(col, vec3(0.04, 0.12, 0.16), wireSub * 0.45 * min(wireVis, 1.2));\n      // Subtle gold highlight of original valence-4/6 extraordinary control edges\n      col = mix(col, vec3(1.0, 0.86, 0.38), wireCage * 0.35 * min(wireVis, 1.2));\n    } else {\n      col = mix(col, vec3(0.14, 0.07, 0.04), wireCage * 0.72 * min(wireVis, 1.2));\n    }\n  }\n\n  float sep = smoothstep(0.0035, 0.0008, abs(screenX - split));\n  col = mix(col, vec3(0.95, 0.97, 1.0), sep);\n\n  fragColor = vec4(pow(clamp(aces(col), 0.0, 1.0), vec3(1.0 / 2.2)), 1.0);\n}",
   "execution_fidelity": "conceptual-diagram",
   "proof": {
    "kind": "rendered",
    "label": "rendered 2026-11-30",
    "ok": true,
    "proof": {
     "ok": true,
     "technique": "loop-subdivision",
     "runtime": "glsl-fragment",
     "checked_at": "2026-11-30T19:53:29.000Z",
     "renderer": "Headless EGL Tesla T4/PCIe/SSE2, OpenGL 3.30 Core, 512×512, iTime=1.5",
     "stats": {
      "mean": 0.6441,
      "std": 0.1987,
      "min": 0.1976,
      "max": 0.9127
     },
     "image": "/specimens/loop-subdivision-live.webp",
     "reason": null
    }
   }
  }
 ],
 "related": [
  "catmull-clark-subdivision",
  "semi-sharp-creases",
  "isotropic-remeshing"
 ],
 "extends": [],
 "supersedes": [],
 "combines_with": [
  {
   "id": "qem-mesh-simplification",
   "why": "Subdivide a base mesh then reproject; or simplify first and subdivide for LOD."
  }
 ],
 "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/loop-subdivision.json"
 },
 "solves": [
  "triangle mesh looks faceted and needs smoothing",
  "need to upsample scanned or generated mesh smoothly",
  "subdivide a triangle mesh without converting to quads",
  "low-poly triangle model should become smooth"
 ],
 "authority": "Loop",
 "url": "https://texelatlas.vercel.app/t/loop-subdivision/",
 "execution_fidelity": "conceptual-diagram",
 "fidelity_label": "Visual Diagram",
 "benchmark_eligible": false,
 "gpu_weight": {
  "weight_x": 16.82,
  "tier": "moderate",
  "p50_ms": 0.5213,
  "p95_ms": 0.5347,
  "baseline_p50_ms": 0.0329,
  "gpu": "Tesla T4/PCIe/SSE2",
  "resolution": "1920x1080",
  "method": "opengl-timer-query",
  "frames": 36,
  "preset_id": "loop-subdivision-live",
  "execution_fidelity": "conceptual-diagram",
  "fidelity_label": "Visual Diagram",
  "benchmark_eligible": false,
  "generated_at": "2026-11-30T21:07:47Z",
  "l4": {
   "weight_x": 13.36,
   "tier": "moderate",
   "p50_ms": 0.2125,
   "p95_ms": 0.2196,
   "speedup_x": 2.45,
   "gpu": "NVIDIA L4/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0159
  },
  "a100": {
   "weight_x": 11.44,
   "tier": "moderate",
   "p50_ms": 0.3295,
   "p95_ms": 0.341,
   "speedup_x": 1.58,
   "gpu": "NVIDIA A100-SXM4-40GB/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0288
  }
 }
}