pub fn march_surface(grid: &GpuSdfGrid, iso: f64) -> Vec<[[f64; 3]; 3]>Expand description
Simplified surface extraction from a GpuSdfGrid.
For each cell of the grid, the function checks whether any of the 12 cube edges cross the iso-surface. For each crossing edge, it linearly interpolates the crossing point and emits a degenerate triangle (three copies of the crossing point) as a placeholder. This is not a full marching-cubes implementation — it counts crossings and returns one “triangle” per crossing — but it exercises the grid access pattern and confirms that crossings are correctly detected.
Returns a Vec<[[f64;3\];3]> of triangles (three vertices each).