Skip to content

Commit

Permalink
Add update to tumor model generation
Browse files Browse the repository at this point in the history
  • Loading branch information
ungi committed Sep 22, 2021
1 parent 2042d56 commit 12ceee6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions LumpNav2/LumpNav2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1363,6 +1363,7 @@ def createTumorFromMarkups(self):
delaunay.SetInputConnection(glyph.GetOutputPort())
#print("delaunay")
#print(delaunay)
delaunay.Update()
surfaceFilter = vtk.vtkDataSetSurfaceFilter()
surfaceFilter.SetInputConnection(delaunay.GetOutputPort())

Expand All @@ -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())
Expand Down

0 comments on commit 12ceee6

Please sign in to comment.