import os
import libSalomePy
from vtk import *
-
-try:
- from libvtkRenderingPython import *
-except:
- from vtkRenderingPython import *
+from vtkRenderingCorePython import *
+from vtkFiltersSourcesPython import *
# get the "vtkRenderer": an OpenGL rendering context
ren = libSalomePy.getRenderer()
cone = vtkConeSource()
cone.SetResolution(8)
coneMapper = vtkPolyDataMapper()
-coneMapper.SetInput(cone.GetOutput())
+coneMapper.SetInputConnection(cone.GetOutputPort(0))
coneActor = vtkActor()
coneActor.SetMapper(coneMapper)
ren.AddActor(coneActor)
libSalomePy.fitAll()
-
-iren = libSalomePy.getRenderWindowInteractor()