How to Center of Origin to Object Center

Hi all,

I am working on full workflow for Orthognathic surgery through the 3D Slicer only and planning to make a tutorial. One last piece of puzzle i want to work out is the how to make the maxilla or the mandible to move around the object center. (not this way Script repository — 3D Slicer documentation)

Is there a way to without closing the entire scene and reloading the stl files separately to center the transformation origin to the center of the object ? this will make Orthognathic surgery workflow very easy.

Thank you

You can specify the center of transformation in Python using vtkMRMLTransformNode::SetCenterOfTransformation().

You can also update the center of transformation from the GUI, see this video starting @ 0:18: https://youtu.be/ielxgJS-6SI?si=QXfVpDDE-5fBx48p&t=18.

1 Like