From f588e41a186b706f822a71e39d029b88aab28f6e Mon Sep 17 00:00:00 2001 From: tfmoraes Date: Thu, 6 Sep 2012 13:10:52 +0000 Subject: [PATCH] FIX: polydata.BuildLinks in VTK5.6 needs an int as argument --- invesalius/data/surface.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/invesalius/data/surface.py b/invesalius/data/surface.py index 8433802..090c569 100644 --- a/invesalius/data/surface.py +++ b/invesalius/data/surface.py @@ -35,7 +35,10 @@ import session as ses import surface_process import utils as utl import vtk_utils as vu -import data.ca_smoothing as ca_smoothing +try: + import data.ca_smoothing as ca_smoothing +except: + pass class Surface(): """ @@ -532,7 +535,10 @@ class SurfaceManager(): polydata.SetSource(None) del clean - polydata.BuildLinks() + try: + polydata.BuildLinks() + except TypeError: + polydata.BuildLinks(0) polydata = ca_smoothing.ca_smoothing(polydata, options['angle'], options['max distance'], options['min weight'], -- libgit2 0.21.2