Hello !
I am trying to dispaly a segmentation in the 3D view using the python interactor but i cant find the command to activate/deactivate the equivalent of “show 3D” in segmentation Editor.
for now i’ve tried :
segmentation = slicer.util.getNode(‘TC4_RH_ctg_mask.nii.gz’)
segmentationDisplayNode = segmentation.GetDisplayNode()
segmentationDisplayNode.SetSliceIntersectionVisibility(True)
segmentationDisplayNode.SetVisibility(True)
but it does not change the 3d display of the segment.
Thanks in advance
GetDisplayNode is for vtkMRMLSegmentationNode (as returned by getNode) not vtkSegmentation. There are several layers, but they make sense to keep the methods localized by dependencies (vtkSegmentation doesn’t know about MRML so it can be used more generally in the future).