Skip to main content

Module implicit

Module implicit 

Source
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§

DualContouring
Dual contouring with QEF minimization for sharp-feature preservation.
ImplicitBlend
Smooth union/intersection/subtraction of two implicit SDFs.
ImplicitBox
Signed distance function for an axis-aligned box.
ImplicitCapsule
Signed distance function for a capsule (segment + radius).
ImplicitConvolution
Smooth SDF operations: offset surfaces and Minkowski sums.
ImplicitSphere
Signed distance function for a sphere.
ImplicitTorus
Signed distance function for a torus in the XZ plane.
IsoMesh
Output triangle mesh from isosurface extraction.
MarchingCubes
Marching Cubes isosurface extraction (Lorensen-Cline).
MarchingTetrahedra
Marching tetrahedra isosurface extraction.
RayMarchHit
Ray march hit result.
RayMarchSdf
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 p using central differences.
smooth_min_exponential
Smooth minimum via exponential blend.
smooth_min_polynomial
Smooth minimum (polynomial blend) of a and b with blend radius k.