Skip to main content

Module functions

Module functions 

Source
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 offset units.
sdf_erode
SDF erosion: offset the surface inward by offset units.
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.