You are converting a polydata (closed surface) to a representation based on an image data (binary label map, segment, vtkOrientedImageData); it is not directly related to Shape nodes.
The result is highly dependent on the resolution of the segmentation, which is initially set according to the spacing or resolution of the input scalar volume. It can be resampled later; in general, I found that the staircase effect gets worse when a segmentation is oversampled.
It might be better to first resample your input volume before creating a segmentation based on it.
In the image below, a segment has been created from the cylinder. In green, the image data has a spacing of 0.3125 x 0.3125 x 0.6250, i.e, the cylinder diameter is just above the minimum spacing. In red, the same volume has been resampled to 0.1 x 0.1 x 0.1 (don’t do that routinely). The result speaks for itself.
In all cases, the segment will shrink after removing and recreating the representation (Show 3D button).
In my case, I’m not resampling the volume at any point – the spacing remains the same. However, as you mention, the shrink that happens after converting and recreating the representation seems too aggressive, as can be seen in the image I attached.
I’m working with a spacing of 0.25 x 0.25 x 0.25, so I would expect the geometry to be preserved more closely. Is this amount of shrink considered normal behavior?
@bserrano - thanks for posting - it’s possible there’s a systemic shift when converting back and forth between representations. Or it’s possible that the image you posted is related to the resolution and other particularities, such as orientation, since your vessels are small compared to the spacing as @chir.set points out..
This would be good to investigate systematically, probably with some kind of test scripts that try various configurations and make it easy to visualize and quantify what’s going on.
The representation gets worse, that’s what I mentioned above. You may repeat on a new segmentation with a source volume that is first resampled at 0.1 x 0.1 x 0.1. If you crop the volume to the region of study before resampling the volume, you may avoid memory warnings. 0.25 x 0.25 x 0.25 is already a tight spacing though.