Please consider these steps:
- add a volume in a new scene
- in the segment editor, paint anything in a slice view
- in the python console
seg = getNode("Segmentation")
seg.GetDisplayNode().GetPreferredDisplayRepresentationName3D() == None # True
seg.CreateClosedSurfaceRepresentation()
- the segment becomes visible in 3D
- the Show 3D button gets enabled, but
seg.GetDisplayNode().GetPreferredDisplayRepresentationName3D() == None # still True
- Uncheck/check the 3D button
seg.GetDisplayNode().GetPreferredDisplayRepresentationName3D() == None # False
The same is observed with CreateBinaryLabelMapRepresentation()
, except that the segment does not become visible in 3D (which is logical).
One would expect that GetPreferredDisplayRepresentationName3D()
would not be None
if there is a 3D display.
What are your views about that ?