From 92f6a9bf1bfcd9300db9f075cedab0c1b4ddc893 Mon Sep 17 00:00:00 2001 From: paulojamorim Date: Mon, 20 Dec 2010 01:04:58 +0000 Subject: [PATCH] FIX: Fixed problem extract largest region from polydata --- invesalius/data/surface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/invesalius/data/surface.py b/invesalius/data/surface.py index c38c527..1a4f6e3 100644 --- a/invesalius/data/surface.py +++ b/invesalius/data/surface.py @@ -489,16 +489,16 @@ class SurfaceManager(): polydata_append.AddInput(reader.GetOutput()) t -= 1 - polydata = polydata_append.GetOutput() clean = vtk.vtkCleanPolyData() clean.SetInput(polydata) clean.PointMergingOn() + polydata = clean.GetOutput() # Improve performance stripper = vtk.vtkStripper() - stripper.SetInput(clean.GetOutput()) + stripper.SetInput(polydata) stripper.PassThroughCellIdsOn() stripper.PassThroughPointIdsOn() -- libgit2 0.21.2