Voxelize a mesh into a persistent dense VoxelFieldHandle: one grid you
can boolean / offset / shell / reinit in place, then contour once. The handle
is disposable — free the WASM grid with using (or [Symbol.dispose]()).
resolution sizes the longest bbox axis; padding is the air-margin ring.
Errors on an empty/invalid mesh, or if the grid would exceed the dense budget
(the persistent path is dense-only) or the voxel cap.
Voxelize a mesh into a persistent dense VoxelFieldHandle: one grid you can boolean / offset / shell / reinit in place, then contour once. The handle is disposable — free the WASM grid with
using(or[Symbol.dispose]()).resolutionsizes the longest bbox axis;paddingis the air-margin ring. Errors on an empty/invalid mesh, or if the grid would exceed the dense budget (the persistent path is dense-only) or the voxel cap.