Display Model in 3D view via a Python module

Operating system: Ubuntu 20.04
Slicer version: 4.11.20210226

I am writing a python module for 3D Slicer. I have a surface (vtkPolyData). I want to display this in the 3D view. I know how to do this with a volume, i.e. using sitkUtils.PushVolumeToSlicer. Is there something like PushModelToSlicer?

Also, is PushVolumeToSlicer the only way to display a volume object on the 3d view?

Hi, see the first example in script repository: models

slicer.modules.models.logic().AddModel(...)

Hope this helps

1 Like

2 posts were split to a new topic: Update existing volume from SimpleITK image