Does the surface models module have an api that will allow you to access its features via python?
Yes, all features of all modules are accessible from Python. What would you like to achieve?
I would like to be able to render a 3D view in a slicelete and then display the model in a 3D view. I have a label map I would like to provide as input.
The simplest way of showing segmentation in 2D and 3D is to convert your labelmap node to a segmentation node:
seg=slicer.mrmlScene.AddNewNodeByClass('vtkMRMLSegmentationNode') slicer.modules.segmentations.logic().ImportLabelmapToSegmentationNode(getNode('label'), seg) seg.CreateClosedSurfaceRepresentation()
After this conversion you can delete your original labelmap node.