Expand description
Auto-generated module
🤖 Generated with SplitRS
Functions§
- approximate_
volume - Compute the approximate volume enclosed by the zero level-set.
- count_
interior_ cells - Count the number of cells where the SDF is negative (inside the surface).
- evaluate_
sdf_ batch - Evaluate an SDF at a batch of query points.
- fast_
sweeping_ update - One pass of the fast sweeping method.
- gradient_
sdf_ batch - Compute the SDF gradient at a batch of query points.
- intersection_
sdf - Compute the intersection of two SDFs:
max(a, b)pointwise. - marching_
cubes - Extract a triangle mesh from the SDF grid at the given isovalue using the marching cubes algorithm (simplified 3-case variant).
- mesh_
to_ sdf - Convert a triangle mesh to an SDF by computing the distance from each grid cell to the nearest triangle.
- mesh_
triangle_ count - Count the number of triangles in the extracted mesh.
- sdf_
close - SDF morphological closing: dilate then erode.
- sdf_
dilate - SDF dilation: offset the surface outward by
offsetunits. - sdf_
erode - SDF erosion: offset the surface inward by
offsetunits. - sdf_
gaussian_ blur - Apply a 3×3×3 box-filter (Gaussian-like) convolution to an SDF grid.
- sdf_
laplacian_ sharpen - Laplacian (sharpening) convolution on the SDF.
- sdf_
laplacian_ smooth - Iterative Laplacian smoothing of the SDF.
- sdf_
mean_ curvature_ smooth - Mean-curvature smoothing of the SDF (simplified).
- sdf_
offset_ surface - Signed distance field offset: produce an iso-surface at
offset. - sdf_
open - SDF morphological opening: erode then dilate.
- shell_
sdf - Compute the shell SDF:
|sdf(p)| - thickness/2. - smooth_
union_ sdf - Smooth union of two SDFs using polynomial smoothing.
- sphere_
trace - Perform sphere tracing (ray marching) against an SDF grid.
- subtraction_
sdf - Compute the subtraction of SDF b from SDF a:
max(a, -b)pointwise. - union_
sdf - Compute the union of two SDFs:
min(a, b)pointwise.