fn surface_to_mask(
vertices_mm: &[[f64; 3]],
faces: &[[usize; 3]],
nx: usize,
ny: usize,
nz: usize,
voxel_size: &[f64; 3],
) -> Vec<u8> ⓘExpand description
Convert surface mesh to binary mask using flood fill
vertices_mm: vertex positions in mm coordinates voxel_size: voxel dimensions in mm