I am not sure what is the best way to export a segmentation to a predefined empty vtkMRMLModelNode?
Assume that I have a vtkMRMLModelNode named “Model”.
I currently use the following
shNode = slicer.mrmlScene.GetSubjectHierarchyNode()
exportFolderItemId = shNode.CreateFolderItem(shNode.GetSceneItemID(), “Segments”)
but I want to export directly to the node = slicer.util.getNode(“Model”)
Is it possible?