I’m working with a segment representing a tubular geometry, and I have a vtkMRMLMarkupsShapeNode representing a cylinder placed at the end of this structure.
I’d like to crop or cut the segment using the plane defined by the cylinder’s base (the red line).
Is there a recommended way to use the shape node’s geometry — particularly the cylinder’s plane — to perform this kind of clipping on the segment?
I am trying but I cannot figure out how to convert the ‘vtkMRMLMarkupsShapeNode’ (cylinder) to model. Lastly I tryied with markups to model, but it only creates a triangle with the 3 points that define the cylinder