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 489 polydata_append.AddInput(reader.GetOutput())
490 490  
491 491 t -= 1
492   -
493 492 polydata = polydata_append.GetOutput()
494 493  
495 494 clean = vtk.vtkCleanPolyData()
496 495 clean.SetInput(polydata)
497 496 clean.PointMergingOn()
  497 + polydata = clean.GetOutput()
498 498  
499 499 # Improve performance
500 500 stripper = vtk.vtkStripper()
501   - stripper.SetInput(clean.GetOutput())
  501 + stripper.SetInput(polydata)
502 502 stripper.PassThroughCellIdsOn()
503 503 stripper.PassThroughPointIdsOn()
504 504  
... ...