Expand description
Auto-generated module
🤖 Generated with SplitRS
Traits§
- Sdf
- Signed distance function trait.
Functions§
- count_
surface_ cells - Count the number of grid cells that straddle the zero isosurface.
- extract_
isosurface - Extract the zero isosurface from an
SdfGridusing Marching Cubes. - fbm_
noise - Fractal (octaved) value noise: fBm with
octaveslevels. - ray_
march - March a ray defined by
origin + t * directionthrough an SDF. - ray_
march_ relaxed - Ray march with over-relaxation for faster convergence.
- sdf_
ambient_ occlusion - Estimate ambient occlusion at surface point
pwith normalnfrom an SDF. - sdf_
closest_ point - Project point
pto the nearest surface point of the SDF using gradient descent on the absolute distance. - sdf_
contact_ manifold - Generate a contact manifold between a convex set of sample points and an SDF.
- sdf_
gradient - Estimate the gradient of an SDF at
pvia central finite differences. - sdf_
mean_ curvature - Mean curvature of an SDF at
pestimated from the Laplacian of the SDF. - sdf_
normal - Compute the unit outward surface normal at
pby finite-difference gradient. - sdf_
point_ query - Test whether point
pis inside the SDF and return contact data. - sdf_
smooth_ difference - Polynomial smooth-difference kernel (subtract
bfroma). - sdf_
smooth_ intersection - Polynomial smooth-intersection kernel.
- sdf_
smooth_ union - Polynomial smooth-union kernel (Quilez).
- sdf_
soft_ shadow - Estimate a soft-shadow factor for a point
ptoward a light atlight_pos. - sdf_
sphere_ sweep - Simple swept-sphere vs SDF collision proxy.