pub fn marching_cubes_sample(
surface: &dyn ImplicitSurface,
bounds_min: [f64; 3],
bounds_max: [f64; 3],
resolution: usize,
) -> Vec<MarchingCell>Expand description
Sample an SDF on a regular grid and collect all MarchingCells that
contain a surface crossing.
resolution is the number of cells per axis. The total sampled cells
is resolution³.