Hi,
I’ve generated irregular random curves that overlap at a moment. I’d like to connect specific point of them with polylines.
On the screenshot for example connect 4 to 18, 3 to 19, 2 to 20 and 1 to 21.
Any suggestions ?
Thanks !
Do those curves overlap from top view?
By “connect” you mean creating a vertical line?
If both yes, you could extract all the points for curve A and curve B, then projecting all the points in XY plane, and for each point in list A finding the neares in list B, if the distance is less than “something” (hard to use =0 boolean) keep that point and draw a line.
For a better answer please upload your curves.
Hey, thank you for your answer !
Yes this is exactly the case here, they overlap from top view.
I understand what you mean but don’t have any idea how to do it on GH… i’m quite new.
Here is the file where you’ve got the curves, i added one because i’d like to do it with numerous curves if possible.
OverlapingCrv.3dm (3.0 MB)
This basically do:
Sorry I’ve mistaken the script you give me works perfectly !
The mass multiplication box wasn’t here when I opened the file, I added and its works !
Thank you very much !
You’re welcome.
For the wires, i suggest you to turn on “Draw Fancy Wires” in the “Display” tab.
Useful to distinguish between “single item”, “list of items” and “tree” types of data.
Loft.
OverlapingCrv_V2.gh (12.4 KB)
Code was almost the same, but beware, some of you curves intersect eachother; loft works anyway, but you’ll get strange result working with the geometry after this… probably.
Great !
Yes you’re right i’ll pay attention to those messy intersections
Thanks again