Skip to content

Commit 38b8a8e

Browse files
committed
BUG: solve empty mandibularReconstructionModel because of using decimated models as input for boolean operations
1 parent 77ad2d0 commit 38b8a8e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

BoneReconstructionPlanner/BoneReconstructionPlanner.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3350,6 +3350,10 @@ def create3DModelOfTheReconstruction(self):
33503350
if previousMandibleReconstructionModel:
33513351
slicer.mrmlScene.RemoveNode(previousMandibleReconstructionModel)
33523352

3353+
if parameterNode.GetParameter("useNonDecimatedBoneModelsForPreview") != "True":
3354+
parameterNode.SetParameter("useNonDecimatedBoneModelsForPreview","True")
3355+
self.onGenerateFibulaPlanesTimerTimeout()
3356+
33533357
shNode = slicer.mrmlScene.GetSubjectHierarchyNode()
33543358
scaledFibulaPiecesFolder = shNode.CreateFolderItem(self.getParentFolderItemID(),"Scaled Fibula Pieces")
33553359
scaledFibulaPiecesTransformsFolder = shNode.CreateFolderItem(self.getParentFolderItemID(),"Scaled Fibula Pieces Transforms")

0 commit comments

Comments
 (0)