Module sdf_collider
Expand description
Analytical SDF Collider & Tetrahedron Gradient Normal Evaluator (sdf_collider.rs).
First-class analytical Signed Distance Field collision primitive:
shares the exact mathematical SDF definitions of HolographicNodeGpu and
evaluate_smooth_minimum_sdf, evaluating signed distance $d = \text{sdf}(\mathbf{x})$ and
the surface gradient normal $\nabla\text{sdf}(\mathbf{x})$ in $O(1)$ with zero triangle-mesh
discretization error and zero heap allocation.
Enums§
- SdfPrimitive
- Analytical SDF primitive shapes evaluated in $O(1)$ local coordinates.
Functions§
- evaluate_
smooth_ minimum_ sdf - Polynomial smooth-minimum blending (SDF implicit fillet) between two distances $d_1$ and $d_2$: $smin(d_1, d_2, r) = \min(d_1, d_2) - \frac{h^2}{4r}$ where $h = \max(r - |d_1 - d_2|, 0)$.