From 12ceee6414e95fe0000381a9321fa12904d909e1 Mon Sep 17 00:00:00 2001 From: Tamas Ungi Date: Wed, 22 Sep 2021 11:30:08 -0400 Subject: [PATCH] Add update to tumor model generation --- LumpNav2/LumpNav2.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/LumpNav2/LumpNav2.py b/LumpNav2/LumpNav2.py index 8fdf684..d3eaa33 100644 --- a/LumpNav2/LumpNav2.py +++ b/LumpNav2/LumpNav2.py @@ -1363,6 +1363,7 @@ def createTumorFromMarkups(self): delaunay.SetInputConnection(glyph.GetOutputPort()) #print("delaunay") #print(delaunay) + delaunay.Update() surfaceFilter = vtk.vtkDataSetSurfaceFilter() surfaceFilter.SetInputConnection(delaunay.GetOutputPort()) @@ -1385,6 +1386,7 @@ def createTumorFromMarkups(self): normals.SetFeatureAngle(100.0) #print("normals") #print(normals) + normals.Update() parameterNode = self.getParameterNode() tumorModel_Needle = parameterNode.GetNodeReference(self.TUMOR_MODEL) tumorModel_Needle.SetAndObservePolyData(normals.GetOutput())