I created a scence with some meshes(2 layer,such as 1st:cube,2nd:cylinder) and pictures by import vtk in slicer, I want to show it in 3D view of slicer. Can I do it with python. Thanks!
You can load and display a mesh file in Slicer by calling:
slicer.modules.models.logic().AddModel("path/to/modelfile.stl")