How to determine the maximum posible size of a inside shell before extruding the external surface?

I need to make some measurements for bone tunnels.
Right now we are exporting a bone model to meshmixer, then we create a cilindre aligned on a defined axis inside the bone. We then manually increase the diameter until it extrudes the surface of the bone model.

I wanted to ask for some tips to make this process a little more automated. We need to measure 60 models and each with the cilindres at different angles.

Thank you.
Ricardo Vega

Im my opinion this can be automated.

First you need to get the anatomical axis of the long bone. Look at this code to get an idea of something you could improve:

You can see my post about finding the anatomical axis also:

Please let me know if you achieve it

Hope it helps