From f2fa09e63d2cbf60eb93485313203a5839a7a4bb Mon Sep 17 00:00:00 2001 From: Thiago Franco de Moraes Date: Wed, 10 Aug 2016 10:00:17 -0300 Subject: [PATCH] Cut plane was not working with VTK6 --- invesalius/data/volume.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/invesalius/data/volume.py b/invesalius/data/volume.py index 3f2ee4d..d71cb35 100644 --- a/invesalius/data/volume.py +++ b/invesalius/data/volume.py @@ -648,7 +648,7 @@ class Volume(): self.plane_on = False self.plane.Disable() else: - self.final_imagedata.Update() + # self.final_imagedata.Update() self.plane_on = True self.plane = CutPlane(self.final_imagedata, self.volume_mapper) @@ -692,7 +692,7 @@ class CutPlane: def Create(self): self.plane_widget = plane_widget = vtk.vtkImagePlaneWidget() - plane_widget.SetInput(self.img) + plane_widget.SetInputData(self.img) plane_widget.SetPlaneOrientationToXAxes() #plane_widget.SetResliceInterpolateToLinear() plane_widget.TextureVisibilityOff() @@ -710,7 +710,7 @@ class CutPlane: plane_source.SetPoint2(plane_widget.GetPoint2()) plane_source.SetNormal(plane_widget.GetNormal()) plane_mapper = self.plane_mapper = vtk.vtkPolyDataMapper() - plane_mapper.SetInput(plane_source.GetOutput()) + plane_mapper.SetInputData(plane_source.GetOutput()) self.plane_actor = plane_actor = vtk.vtkActor() plane_actor.SetMapper(plane_mapper) plane_actor.GetProperty().BackfaceCullingOn() -- libgit2 0.21.2