Bend a spline along a body part or organ in phantom model


I am trying to create a spline and bend it along a body part or internal organ in phantoms such as the Yoon-sun model. Due to curvature, it can be time-consuming to draw points and connect them using splines, so I'm looking for a more efficient way to do this.

I've come across other posts on this forum where python scripts were shown to model random bent wires. Here is one example:

I'm wondering if there is a possibility to automate this through scripting.

Any help is much appreciated 😊

Thank you!