meshing.surface_cells

meshing.surface_cells(sdf, grid, *, level=0.0, lipschitz=1.0, stats=None)

Find every unit cell that may contain the level set, by octree descent.

Returns lattice cell indices shaped (cell_count, 3), a conservative superset of the cells the surface actually crosses.