Is there a way to generate a curve along the center of a polygonal tube? I was looking into trying to iterate through all the rings and generate a curve along the average center. Wondering if there is an existing solve for this or if anyone knows a good way to do it. I'm really only at an intermediate/advanced with python, not a lot of API experience.
Replies
I'm not sure if it'll be able to give you a single centered spline though.
It sounds like you've worked out how to write the code to me. Its just a question of how you feed it information.
If you want a general solution, look into median line algorithms. ItllI be overkill for this use case though