Good Morning,
You are basically asking "how do I program non-planar 3D printing for generic solids" which is a question that is not fully within the scope of a forum. But I'm happy to share some code to put you in the right direction. It uses Pufferfish to tween between two surfaces. Just note that with trimmed surfaces you run into some issues, as you are going to see. Also, the code is not made for a solid, but two surfaces. With a solid you would need to somehow define how those non-planar divisions are flowing.
Hope it helps!
Best,
Johannes