vtkSurfaceNets3D produces open surfaces
vtkSurfaceNets3D produces open surfaces when the non-background voxels reach the boundary.
I guess a special case would be needed to add the quads at the boundary (i.e., if first/last voxel value != BackgroundLabel, add quad). The BoundaryLabels would could store the BackgroundLabel for the "voxel that is outside the image".
A workaround would be to document that vtkSurfaceNets can produce open surfaces and that the image should be padded with the BackgroundLabel before running the filter.
what I get:
what I get if I pad the image first (vtkImageConstantPad
):
Edited by Bryn Lloyd