I’m looking for a robust way to generate a set of lines connecting two closed curves (one nested inside the other) without any of the lines crossing each other.
Ideally, the points should be evenly distributed along both curves to maintain a clean aesthetic. However, since the curves have different shapes and lengths, a simple “Divide Curve” by equal segments often leads to overlapping or crossing lines in tighter turns.
Does anyone have a snippet or a logic suggestion to ensure these lines stay “parallel-ish” and never intersect (Kangaroo ?)?
This problem can be tackled in many ways, and depends on what’s your parameter on it.
… that… and anything else?
The more specific you can be, the better.
Is this mainly aesthetic or you have also some limits regarding the manufacturing?
Like, maybe set a maximum and minimum distance between the end points of the lines?
For now a cheap hack using Smooth Polyline component:
Thank you so much for your help and for these different approaches!
The different solution work perfectly for my current needs. It provides exactly the visual ‘rhythm’ and clean distribution I was looking for without any line crossings.
I have other type of similar problems but I’ll try to resolve them before to post something else. Thank you again =)
Hello
Here is a version using weight smoothing, let say one curve is 1 and the other 0, it calculate a weight on each point of a mesh between the 2 curves, then there is flow along the gradient.