I am trying to visualize RT structure data as a Closed Contour representation in my own application in a Three 2D view, and i checked SlicerRT implementation on it, So basically i copied the
codes, passed my RT structures polydata into the Convert function of the file, and it did give me the target representation, which i believe should be a closed surface representation, And i also checked in Slicer this representation is displayed using a vtkPlaneCutter , Now my problem is when i use my original poly data and pass it to vtkPlaneCutter it visualizes the polydatas exactly the way slicer does, (with lots of little dots with different colors), but when i pass the target representation polydata to vtkPlaneCutter , vtk throws an error saying there is no output from vtkPlaneCutter. I would like to know , is this how Slicer does it? Pass the target represntation to the vtkPlanecutter? I tried to debug and find out , but failed to set up debugging,. Any insight on how the closed surface is visualized in slicer ? i tried to check the code in segmentation module and saw vtkImageData is also being used , but i think its for labelmap representation. not the default closed surface representation. so should i do any other post processing after i get the target representation from convert function, and then pass it to vtkplanecutter ?