From: vsr Date: Tue, 30 Apr 2013 03:54:48 +0000 (+0000) Subject: Fix bug of ParaView 3.98 porting - correct test script X-Git-Tag: V7_2_0~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1c2d1aa127407ac22dc55c7e0e4c4d90e1ed854a;p=modules%2Fgui.git Fix bug of ParaView 3.98 porting - correct test script --- diff --git a/src/SALOME_SWIG/examplevtk1.py b/src/SALOME_SWIG/examplevtk1.py index a27ef391e..988e5ade0 100755 --- a/src/SALOME_SWIG/examplevtk1.py +++ b/src/SALOME_SWIG/examplevtk1.py @@ -28,11 +28,8 @@ 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() @@ -41,7 +38,7 @@ ren = libSalomePy.getRenderer() cone = vtkConeSource() cone.SetResolution(8) coneMapper = vtkPolyDataMapper() -coneMapper.SetInput(cone.GetOutput()) +coneMapper.SetInputConnection(cone.GetOutputPort(0)) coneActor = vtkActor() coneActor.SetMapper(coneMapper) @@ -49,5 +46,3 @@ coneActor.SetMapper(coneMapper) ren.AddActor(coneActor) libSalomePy.fitAll() - -iren = libSalomePy.getRenderWindowInteractor()