SlicerIGT / SlicerBoneReconstructionPlanner

3D Slicer module for planning mandible reconstruction surgery using fibula flap
BSD 3-Clause "New" or "Revised" License
26 stars 10 forks source link

Mandibula cut plane cuts through the condyle #27

Open mrtig opened 3 years ago

mrtig commented 3 years ago

It's a simple two plane cut. I don't remember having this issue with 3 or 4 cut planes. For some reason the cut extends two far back and also cuts off the right condyle. image

cmfsx commented 3 years ago

yes, I could reproduce it. I never used two cuts only so the bug was never caught.

mauigna06 commented 3 years ago

Hi @mrtig. Thanks for using the module.

For some reason the cut extends two far back and also cuts off the right condyle.

This happens because the dynamicModeler takes the mandiblePlanes as they have infinite lenght and infinite width so it cuts through everything that is between them to make the resulting model, in this case the it cuts the right condyle as well.

The easier way to avoid this is changing the orientation of the mandiblePlanes so they don't involve part of the condyle:

Screenshot5

That the condyle may be cut doesn't alter the planning so it's a minor bug (thank you for reporting it anyway). @lassoan, do you have any idea on how to solve this?

mrtig commented 3 years ago

It's not a big issue, but changing the orientation of the plane is not a real solution.

lassoan commented 3 years ago

That the condyle may be cut doesn't alter the planning so it's a minor bug (thank you for reporting it anyway). @lassoan, do you have any idea on how to solve this?

We added the option of specifying "Operation type" for exactly this purpose. You can add a sagittal cutting plane and set operation type so there cannot be any other cuts on the other side of the mandible.

mauigna06 commented 1 year ago

Although it was fixed, how this works needs to be documented and clear for the user