Hi all,
I am trying to clip a model and I expect to have a smaller volume after clipping.
I use vtkClipPolyData and vtkImplicitBoolean for clipping (my own way).
Green is the initial input and the blue is the cropped and I expect the volume to be smaller.
As you can see in the image I created the segmentation for both and it seems that I compare the right things. But if you check the Volumes are not correct.
I used Segment Statistics Module and here are the results
Seems that there is an issue with the “Cutter”. I tried to close it with the following way but I am not sure if that is the right way:
Segments in a segmentations node are always “closed”, regardless of what representations are used. Calling CreateClosedSurfaceRepresentation() just ensures that closed surface representation is present. Segment statistics computes volume from both labelmap and closed surface representations (you can find more details in the tooltip when you hover the mouse over the table).
If you want to recreate closed surface representation from labelmap representation then make labelmap the master representation and delete and create closed surface representation.
I don’t know how did you close the surface but Segmentation module’s closed surface to labelmap importer closed it correctly, so I would recommend to use that.