Expand description
Implicit surfaces and signed distance fields (SDF).
Provides SDF primitives, smooth blending operations, voxel SDF grids, marching cubes isosurface extraction, dual contouring, and ray marching.
Structs§
- Dual
Contouring - Dual contouring with QEF minimization for sharp-feature preservation.
- Implicit
Blend - Smooth union/intersection/subtraction of two implicit SDFs.
- Implicit
Box - Signed distance function for an axis-aligned box.
- Implicit
Capsule - Signed distance function for a capsule (segment + radius).
- Implicit
Convolution - Smooth SDF operations: offset surfaces and Minkowski sums.
- Implicit
Sphere - Signed distance function for a sphere.
- Implicit
Torus - Signed distance function for a torus in the XZ plane.
- IsoMesh
- Output triangle mesh from isosurface extraction.
- Marching
Cubes - Marching Cubes isosurface extraction (Lorensen-Cline).
- Marching
Tetrahedra - Marching tetrahedra isosurface extraction.
- RayMarch
Hit - Ray march hit result.
- RayMarch
Sdf - Sphere-tracing ray marcher through an SDF.
- SdfGrid3D
- 3D voxel grid storing signed distance values.
- SdfReinitialize
- Fast marching method to reinitialize a corrupted SDF grid.
Functions§
- sdf_
gradient_ numerical - Numerical gradient of an SDF at point
pusing central differences. - smooth_
min_ exponential - Smooth minimum via exponential blend.
- smooth_
min_ polynomial - Smooth minimum (polynomial blend) of
aandbwith blend radiusk.