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

Hello,

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:

https://forum.zmt.swiss/topic/150/how-to-model-a-bent-wire-with-a-fixed-length/9

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

Any help is much appreciated 😊

Thank you!