From 1c2d1aa127407ac22dc55c7e0e4c4d90e1ed854a Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 30 Apr 2013 03:54:48 +0000 Subject: [PATCH] Fix bug of ParaView 3.98 porting - correct test script --- src/SALOME_SWIG/examplevtk1.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) 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() -- 2.39.2