Creating a line between two curves

Hello!

I have a question and maybe one of you can help me with my request. I want to create a line between two closed curves, but I want to find the spot, where the line is still straight, but also not colliding with the loft surface.
I tried a few things, but I can’t realy come up with a good solution, so maybe on of you can help me out.

Thanks in advance!

The screenshots show what I don’t want and the blue lines is what I want to achieve.

Intertwining structure.3dm (93.9 KB)
Intertwining structure.gh (12.4 KB)



Intertwining structure_2025May24a.gh (14.1 KB)

Two curves are internalized so this can be opened in R7 (without R8 Rhino file)

P.S. This is a top view of a blue surface between the two shapes, created by the purple group:


Intertwining structure_2025May24b.gh (17.5 KB)

Thank you so much! This is definitely something I can work with!

I tweaked Josef’s method (thanks -again- Josef) to make this vase shape:


The key to this, of course, is the curve that makes the Loft surfaces:

At first glance I thought it was an egg shape, but clearly it is not that. So what is it? Hand made? Or is there some way to distort an ellipse? Maybe some sort of non-linear plugin??

How is that related to what I did? Looks like you rotated the two original curves, then region unioned them? What do you do with all your vases?

  1. Does this look familiar?
  2. It’s not just vases

    :grinning_face:
1 Like

No. Your “secret” is safe from me. I was thinking something like this, with offset for thickness:


Intertwining structure_2025May24c.gh (16.4 KB)

Correction, vases and lamps? Variations on the same theme. :rofl:

P.S.


Intertwining structure_2025May24d.gh (25.2 KB)

Nothing to do with what I did earlier.

1 Like

Full Monty with Graph Mapper scaling and bottom (purple group):


Intertwining structure_2025May24e.gh (39.8 KB)

Playing with parameter values broke the code in some cases so I made a few changes. Of course, this “vase” is impractical to clean…


Intertwining structure_2025May25a.gh (40.7 KB)

Again, this has nothing to do with the title (and point) of this thread so don’t know why @Birk_Binnard pinged me? Nevertheless, I apologize Birk for my thoughtless remarks.

It was because I tweaked your Intertwining structure_2025May24b.gh to make my version. But I’ve since switched to a Bezier curve to make the basic shape, and I replaced the original 2 egg-shaped (sort of) curves with real egg shaped ones. So now I’ve got this:


Which is OK, but also quite similar to other shapes I’ve made like this. So I’m going to see about using more than 4 parts of the Loft’s curves, and also smoothing out (filleting) the sharp edges.

It’s handdrawn in Rhino, hope that answers your question!

I’m not sure, what the vases have to do with my original question and the point of this thread, but it looks nice I guess?
Too clear things up, the “vase” like structure is my code and I needed someone to help me find a curve, which is straight but not colliding with the surface it surrounds. And Joseph used the “nearest curve” component to get the curve I wanted. I hope that clears up any questions!
(I’m sorry, that’s a very brief summary)

1 Like

But again, the critical thing I added in that GH code was the part that addresses the thread topic (“Creating a line between two curves”), so you could have just as well started with code in the first post from @user1543, right? Maybe I’m missing something? You didn’t post your GH file so it’s hard to be sure, but as far as I can tell, you didn’t use what I did :interrobang:

I think he just mixed it up or didn’t read the question. Maybe he thought, the question was about how to recreate this vase like structure

Yes, that’s what I suspected from the start. Thanks for the verification.