Connect 2 curves with lines (expert lvl) - II - 2025

Hi community,

I’m puzzled again with this problem I’ve try to resolve it couple times in the past : Connect 2 curves with lines (expert lvl) and loft 2 curves.

I want to connect 2 cuvrves with multiple lines while maintaining a descent spacing between each points dividing the curve like this.

The trick is when one of the 2 cuvres has a more pronounced curvature, more points will be required. Easy to solve with one curve, by dividing it with the fit curve component.


But further on, the difficulty comes with the relationship to the other curve which have sometimes also pronounced curvature and need more points. Therefore for final usage, we can’t use the curve closest point nor a perp frame component…

Any Idea on this puzzle ?

In the past @Jakinta, came up with a clever solution, but only for a specific part of the curve, and it was kinda "manual. Still pretty clever tho.


Connect_2_curves_4.2.gh (41.2 KB)

Thanks alot
CC

This appears to be a DUPLICATE THREAD. I didn’t read now all of the two threads you linked to, nor should anyone be required to do so. But I see enough there to know you’ve had plenty of good advice. The code you posted in this THIRD THREAD is useless without a plugin.

P.S. Your curves are obviously corrupt, not fair. GIGO :red_exclamation_mark:


connect_two_curves_2025May20a.gh (19.5 KB)

Hello @Joseph_Oster ! Glad to hear from you again, in this THIRD THREAD.

If you’ve had red carefully, I’m posting this to try to go further down that road. I definitly didn’t find any convenient solution yet and I’m still searching. If some are willing to help or have briliant ideas since then, well I’ll be very interested to hear about. Don’t butter with this post if not interested to answer in this to help, as far as I know you’re not a moderator here.

Never the less, what you propose was a good idea but still cause issues at some places.


Connect_2_curves_4.2.gh (41.2 KB)

Thanks
CC

The file is missing the inputs…

“THREAT” :interrobang: Do you know what GIGO means?

Poor curves will always produce poor results.

P.S. Two is mis-spelled in your GH filename.

I took a guess at what you want and used a different approach to make this:


connect_tow_curves_RE_4.1-bb1.gh (44.2 KB)

My idea would be to play with the parametrization of the curve.
connect_tow_curves_20250521.gh (36.6 KB)

Would the result be satisfying enough ?

1 Like

Connect_2_curves_4.2.gh (34.1 KB) the file with the 2 curves to work on. Data internalized this time.

@Benjamin_TAN1 thanks for the try out, unfortunatly, with my 2 tests curvs, its not accurate enough. See in LtBlue your GHdefinition, then in black, the output lines that are close to what I’m after.


And curves arn’t same lenght so it might be difficult to divide them by the same amount of points. It depends in the end of the number of pronounced sub-curves in a curve VS the other one.

Thanks
CC

1 Like

Indeed this highly depends on the number of sub-curves in each curve. The most problematic part is to detect them reliably first and then manipulate the data trees carefully to get the correct lines.

I did try a 2nd approach, don’t know if that’s satisfying enough but it’s definitely closer to the lines you drew!


Connect_2_curves_4.2_20250526.gh (68.0 KB)

@Benjamin_TAN1,

I think indeed your correctly understand the problem.

  • 1 The first curve (A) is easy to devide to have more control points on pronounced sub-curve parts.
  • 2 its then easy with perpedicular lines to connect to the second curve (B)
  • 3 Where it gets difficult is to then “evaluate” this B curve and add extra control points to its pronounce sub-curve parts.
  • 4 Then connect theses points back to the curve A

So in your definition, where I’m at too, is to add step 3 and 4.



I will take a look closely to your solution this week

Probably there would be another way to approch this… I was thinking with connecting lines angles…

I’m still on it among other puzzle for the structure I’m modelizing..

Thanks for the help btw :wink:
Cheers
CC