Commit 92f6a9bf1bfcd9300db9f075cedab0c1b4ddc893

Authored by Paulo Henrique Junqueira Amorim
1 parent 546ea0d2

FIX: Fixed problem extract largest region from polydata

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
invesalius/data/surface.py
@@ -489,16 +489,16 @@ class SurfaceManager(): @@ -489,16 +489,16 @@ class SurfaceManager():
489 polydata_append.AddInput(reader.GetOutput()) 489 polydata_append.AddInput(reader.GetOutput())
490 490
491 t -= 1 491 t -= 1
492 -  
493 polydata = polydata_append.GetOutput() 492 polydata = polydata_append.GetOutput()
494 493
495 clean = vtk.vtkCleanPolyData() 494 clean = vtk.vtkCleanPolyData()
496 clean.SetInput(polydata) 495 clean.SetInput(polydata)
497 clean.PointMergingOn() 496 clean.PointMergingOn()
  497 + polydata = clean.GetOutput()
498 498
499 # Improve performance 499 # Improve performance
500 stripper = vtk.vtkStripper() 500 stripper = vtk.vtkStripper()
501 - stripper.SetInput(clean.GetOutput()) 501 + stripper.SetInput(polydata)
502 stripper.PassThroughCellIdsOn() 502 stripper.PassThroughCellIdsOn()
503 stripper.PassThroughPointIdsOn() 503 stripper.PassThroughPointIdsOn()
504 504