{
 "id": "manifold-dual-contouring",
 "title": "Manifold Dual Contouring",
 "aliases": [
  "MDC"
 ],
 "domain": "geometry",
 "subdomain": "isosurface extraction",
 "stage": "geometry",
 "realtime": "interactive",
 "platforms": [
  "cpu",
  "cuda"
 ],
 "year_introduced": 2007,
 "inputs": [
  "voxels",
  "sdf"
 ],
 "outputs": [
  "mesh",
  "normals"
 ],
 "style": "both",
 "dynamic": "both",
 "summary": "Dual contouring variant that emits several vertices per cell when needed so the extracted surface is a proper 2-manifold, while still preserving sharp features and supporting octree simplification.",
 "how_it_works": "Standard dual contouring creates one vertex per cell, which breaks when a cell is crossed by more than one surface sheet or by a sheet touching itself. Manifold dual contouring first classifies, for each cell, the connected components of its surface-crossing edge loops (using the marching-cubes-style sign pattern). It creates one vertex, with its own QEF, per component rather than per cell. Edges and faces then connect the vertices that belong to the same component, so every edge ends up shared by exactly two faces. The octree simplification step is adapted so a merge only occurs when it keeps the topology manifold, using the same QEF error threshold as DC.",
 "when_to_use": "Choose it when downstream tools demand watertight 2-manifold meshes (booleans, 3D print, simulation, `mesh-boolean-manifold`) and you still want sharp features from an SDF or Hermite volume. Prefer `dual-contouring` when non-manifold glitches are tolerable and you want the simpler code, or `marching-cubes` when features are irrelevant.",
 "cost": {
  "class": "medium",
  "notes": "Same order as dual contouring plus per-cell component analysis; more complex bookkeeping and several vertices per cell."
 },
 "failure_modes": [
  "Implementation complexity: case tables for components are easy to get wrong",
  "Still spikes on bad normals or near-parallel planes",
  "Very thin sheets closer than a cell can produce overlapping vertices that remain geometrically self-intersecting even though topology is manifold",
  "Octree simplification can introduce small cracks if neighbour levels differ by more than one"
 ],
 "sources": [
  {
   "role": "primary",
   "key": "doi:10.1109/tvcg.2007.1012",
   "type": "paper",
   "title": "Manifold Dual Contouring",
   "authors": [
    "Scott Schaefer",
    "Tao Ju",
    "Joe Warren"
   ],
   "year": 2007,
   "venue": "IEEE Transactions on Visualization and Computer Graphics",
   "url": "https://doi.org/10.1109/tvcg.2007.1012",
   "ids": {
    "doi": "10.1109/tvcg.2007.1012"
   },
   "license": null,
   "extra": {
    "csl_type": "journal-article"
   },
   "provenance": {
    "title": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1109/tvcg.2007.1012",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1109/tvcg.2007.1012",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1109/tvcg.2007.1012",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1109/tvcg.2007.1012",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1109/tvcg.2007.1012",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": 1,
   "__bib": "schaefer2007manifold"
  }
 ],
 "presets": [],
 "related": [
  "dual-contouring",
  "marching-cubes",
  "surface-nets"
 ],
 "extends": [
  "dual-contouring"
 ],
 "supersedes": [],
 "combines_with": [
  {
   "id": "mesh-boolean-manifold",
   "why": "Manifold output feeds directly into the boolean library which requires manifold inputs."
  }
 ],
 "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/manifold-dual-contouring.json"
 },
 "solves": [
  "dual contouring produces holes or self-intersecting mesh",
  "extracted isosurface not watertight",
  "thin features create non-manifold geometry from sdf",
  "need clean manifold mesh while keeping sharp edges"
 ],
 "authority": "Schaefer et al., 2007",
 "url": "https://texelatlas.vercel.app/t/manifold-dual-contouring/",
 "execution_fidelity": "none",
 "fidelity_label": "No Live Specimen",
 "benchmark_eligible": false
}