{
 "id": "dynamic-swept-volume-slab-cutting",
 "title": "Kinematic Swept-Volume Boolean Carving via 2D Slab Distance Fields",
 "aliases": [
  "swept-volume slab carving",
  "kinematic aperture cutting",
  "2D swept profile SDF"
 ],
 "domain": "geometry",
 "subdomain": "swept volumes & boolean carving",
 "stage": "geometry",
 "realtime": "realtime",
 "platforms": [
  "webgl2",
  "webgpu",
  "desktop-gpu",
  "cpu",
  "houdini",
  "blender"
 ],
 "year_introduced": 2003,
 "inputs": [
  "mesh",
  "sdf",
  "animation"
 ],
 "outputs": [
  "mesh",
  "sdf"
 ],
 "style": "both",
 "dynamic": "dynamic",
 "summary": "Carves exact clearance slots through thin moving gates or walls by evaluating the kinematic swept volume of a passing body as a 2D minimum-envelope signed distance field on each slab plane.",
 "how_it_works": "Computing the full 3D **swept volume** of a rigid body moving along a trajectory `M(t)`—whether by spacetime numerical continuation (Sellán et al.) or polyhedral envelope approximation (Kim et al.)—captures every point occupied by the body over time. When a moving object such as a pendulum bob or cutter passes through a thin barrier or rotating gate slab, the 3D boolean subtraction simplifies dramatically.\n\nInstead of meshing a full 4D spacetime isosurface, the solver transforms the moving body's analytic or sampled SDF `f_body(p)` into the **local 2D slab frame** `(u, v, w)` at discrete contact times `t_k` while the body intersects the slab thickness `|w| <= h/2`. Taking the temporal minimum envelope `d_sweep(u, v) = min_k f_body(M_slab(t_k)^-1 * p(u, v, w))` across the passage window yields a **2D signed distance field** of the exact silhouette carved through the slab, optionally expanded by a uniform clearance offset `-epsilon`.\n\nExtracting the zero-contour (via marching squares or contour tracing) produces clean 2D boolean hole loops that are triangulated with ear-clipping and extruded across the slab thickness `h`, guaranteeing collision-free passage even when both the cutter and the gate rotate synchronously.",
 "when_to_use": "Choose it when carving tight-tolerance kinematic slots, keyholes, or synchronized mechanical gates through thin discs, plates, or stacked slices along known trajectories.\n\nPrefer [mesh-boolean-manifold](mesh-boolean-manifold) when thick, arbitrary 3D solids require exact volumetric CSG subtraction rather than planar slab extrusion. Prefer [sdf-csg-smooth-min](sdf-csg-smooth-min) when rendering implicit ray-marched scenes where the swept boolean can be evaluated analytically without extracting a triangle mesh.",
 "cost": {
  "class": "cheap",
  "notes": "Evaluating the 2D temporal minimum SDF on a coarse-to-fine slab grid and extruding the contour runs in a few milliseconds at generation time, with standard static mesh rendering cost at runtime."
 },
 "failure_modes": [
  "Temporal undersampling of fast rotations or narrow blades causes scalloped aperture walls or missed collisions between sample instants",
  "Thin-slab 2D projection over-carves or misrepresents beveled entry walls when the obstacle thickness is large relative to the trajectory curvature",
  "Tiny remaining islands or razor-thin bridges near the slab rim can create degenerate triangles during 2D contour extrusion",
  "Non-rigid or unpredictable user-driven trajectories require re-carving the slab field whenever motion parameters change"
 ],
 "sources": [
  {
   "role": "primary",
   "key": "doi:10.1145/3450626.3459780",
   "type": "paper",
   "title": "Swept volumes via spacetime numerical continuation",
   "authors": [
    "Silvia Sellán",
    "Noam Aigerman",
    "Alec Jacobson"
   ],
   "year": 2021,
   "venue": "ACM Transactions on Graphics",
   "url": "https://doi.org/10.1145/3450626.3459780",
   "ids": {
    "doi": "10.1145/3450626.3459780"
   },
   "license": null,
   "extra": {
    "csl_type": "journal-article"
   },
   "provenance": {
    "title": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/3450626.3459780",
     "checked_at": "2026-11-30T17:59:51.239Z"
    },
    "authors": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/3450626.3459780",
     "checked_at": "2026-11-30T17:59:51.239Z"
    },
    "year": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/3450626.3459780",
     "checked_at": "2026-11-30T17:59:51.239Z"
    },
    "venue": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/3450626.3459780",
     "checked_at": "2026-11-30T17:59:51.239Z"
    },
    "url": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/3450626.3459780",
     "checked_at": "2026-11-30T17:59:51.239Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-30T17:59:51.239Z",
   "title_sim": 1,
   "__bib": "selln2021swept"
  },
  {
   "role": "primary",
   "key": "doi:10.1016/j.cad.2004.01.004",
   "type": "paper",
   "title": "Fast swept volume approximation of complex polyhedral models",
   "authors": [
    "Young J. Kim",
    "Gokul Varadhan",
    "Ming C. Lin",
    "Dinesh Manocha"
   ],
   "year": 2004,
   "venue": "Computer-Aided Design",
   "url": "https://doi.org/10.1016/j.cad.2004.01.004",
   "ids": {
    "doi": "10.1016/j.cad.2004.01.004"
   },
   "license": null,
   "extra": {
    "csl_type": "journal-article"
   },
   "provenance": {
    "title": {
     "authority": "doi.org",
     "endpoint": "https://doi.org/10.1016/j.cad.2004.01.004 (CSL-JSON)",
     "checked_at": "2026-11-30T17:59:51.239Z"
    },
    "authors": {
     "authority": "doi.org",
     "endpoint": "https://doi.org/10.1016/j.cad.2004.01.004 (CSL-JSON)",
     "checked_at": "2026-11-30T17:59:51.239Z"
    },
    "year": {
     "authority": "doi.org",
     "endpoint": "https://doi.org/10.1016/j.cad.2004.01.004 (CSL-JSON)",
     "checked_at": "2026-11-30T17:59:51.239Z"
    },
    "venue": {
     "authority": "doi.org",
     "endpoint": "https://doi.org/10.1016/j.cad.2004.01.004 (CSL-JSON)",
     "checked_at": "2026-11-30T17:59:51.239Z"
    },
    "url": {
     "authority": "doi.org",
     "endpoint": "https://doi.org/10.1016/j.cad.2004.01.004 (CSL-JSON)",
     "checked_at": "2026-11-30T17:59:51.239Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-30T17:59:51.239Z",
   "title_sim": 1,
   "__bib": "kim2004fast"
  },
  {
   "role": "implementation",
   "key": "gh:spite/codevember-2026",
   "type": "code",
   "title": "spite/codevember-2026",
   "description": "",
   "authors": [
    "spite"
   ],
   "year": 2026,
   "venue": "GitHub",
   "url": "https://github.com/spite/codevember-2026",
   "ids": {
    "repo": "spite/codevember-2026"
   },
   "license": "MIT",
   "extra": {
    "stars": 45,
    "stars_checked": "2026-11-30",
    "archived": false,
    "fork": false,
    "pushed_at": "2026-11-30T15:47:17Z",
    "language": "JavaScript",
    "homepage": null,
    "license_name": "MIT License"
   },
   "provenance": {
    "title": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/spite/codevember-2026",
     "checked_at": "2026-11-30T17:59:51.239Z"
    },
    "authors": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/spite/codevember-2026",
     "checked_at": "2026-11-30T17:59:51.239Z"
    },
    "year": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/spite/codevember-2026",
     "checked_at": "2026-11-30T17:59:51.239Z"
    },
    "venue": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/spite/codevember-2026",
     "checked_at": "2026-11-30T17:59:51.239Z"
    },
    "url": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/spite/codevember-2026",
     "checked_at": "2026-11-30T17:59:51.239Z"
    },
    "license": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/spite/codevember-2026",
     "checked_at": "2026-11-30T17:59:51.239Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-30T17:59:51.239Z",
   "title_sim": null,
   "__bib": "spite2026spite"
  }
 ],
 "presets": [],
 "related": [
  "mesh-boolean-manifold",
  "sdf-csg-smooth-min",
  "marching-cubes",
  "exact-euclidean-distance-transform"
 ],
 "extends": [],
 "supersedes": [],
 "combines_with": [
  {
   "id": "sdf-csg-smooth-min",
   "why": "Fillets sharp aperture corners and adds uniform clearance margins directly inside the 2D slab distance field before contour extraction."
  },
  {
   "id": "mesh-boolean-manifold",
   "why": "Handles thick non-planar housings where 2D slab extrusion cannot represent slanted exit walls."
  }
 ],
 "provenance": {
  "prose": "original text written for this index (research draft, editorially reviewed)",
  "sources_verified_at": "2026-11-30T17:59:51.239Z",
  "draft": "data/drafts/geometry/dynamic-swept-volume-slab-cutting.json"
 },
 "solves": [
  "carve real-time slices and grooves out of a 3d solid with a moving blade",
  "boolean mesh subtraction is too slow for continuous lathe or milling cuts",
  "simulate wood carving foam cutting or sculpting with a swept tool path",
  "update cut geometry cleanly without leaving non-manifold mesh artifacts",
  "visualize exact material removed by a moving planar or slab cutter"
 ],
 "authority": "Sellán et al., 2021",
 "url": "https://texelatlas.vercel.app/t/dynamic-swept-volume-slab-cutting/",
 "execution_fidelity": "none",
 "fidelity_label": "No Live Specimen",
 "benchmark_eligible": false
}