I’m trying to split a segment based on its rotational position (e.g. only getting a 15 deg wedge of the segmentation). I’m thinking the way to do this is to create a vtkWedge shape and take its intersection with the existing segmentation.
I’m creating a vtkWedge right now but I’m looking for something like “GetOutput()” that exists for a vtkSphere (example), so that I can assign my wedge shape to a segmentation node. Any suggestions? Here’s my existing code to create a wedge:
#Create Wedge Shape
wedge = vtk.vtkWedge()
wedge.GetPoints().SetPoint(0,0,0,0)
wedge.GetPoints().SetPoint(1,0,1,1)
wedge.GetPoints().SetPoint(2,0,1,1)
wedge.GetPoints().SetPoint(3,1,0,0)
wedge.GetPoints().SetPoint(4,1,0,1)
wedge.GetPoints().SetPoint(5,1,1,1)
#Create segmentation node from Wedge - can't figure this out
Thanks in advance!