Loft wavy curves

Hi, I tried many things but I can’t loft this two curves properly :


loft waves curves.gh (40.6 KB)

Any ideas ?

1 Like

Hey @emilien, I noticed you were rebuilding the curves in your attempt(s) - if this means the curves are allowed to change into something a bit smoother, *then I think you’re better off doing so; meanwhile here’s a quick try with Sweep using a bunch of division points, which you can increase/decrease to account for the difficult tight areas. The output is an Open Brep, not an untrimmed surface, though - not sure if this is cool with you.

loft waves curves.gh (44.1 KB)

2 Likes

@René_Corella
Thank you It’s better than mine but I need something flat between the two lines :

The inner curve can be smoother, even the distances can be irregular.

Thanks

1 Like

Well, this might be something to work off of. Problem is… It does not like the ends. So they are not there.
loft waves curves 23.gh (41.6 KB)






1 Like

mmh - I wish you had said this before so I could ask what it means :rofl:

I did something like this first too and got the same result

I think I found something ( with C# and ChatGPT) :


loft waves curves OK.gh (38.6 KB)

1 Like

What a rogue champion! Thanks for sharing - do you mind me asking how you brought it up to the ChatGPT? Was it ready with minimal edit(s) within grasshopper or did you have to tweak many things in the script editor? I’ve made an attempt in the past for something simple - it gave me the code, but then the setup in the grasshopper C# script editor wasn’t working properly in terms of the output - and I didn’t make the time to investigate more.

Good stuff!

I use GPT4 , 3.5 is useless.

Simple code is working out of the box, if not I simply copy/paste output error to chatgpt

1 Like

Aha! Alright - very interesting. Thanks for your response :slight_smile:

Was your prompt something very specific or more or less how you asked your question here?

Here the prompt (translated from french) :

“Write a C# script for a custom component in Grasshopper that takes two different lists of points and connects the closest points from each list with a line without any point being on two lines.”

1 Like

Awesome! You should mark your own result as the solution! Last question (sorry): what do you mean by ‘without any point being on two lines’ ? Does it refer to each line only connecting/touching two points but never one point to two or more?

Maybe translation is not very good, I mean no common points between two lines.

I am not very good in english sorry about that.

1 Like

Translation is fine - it’s just that with geometry stuff there’s always interpretation - I wanted to make sure I understood correctly.

Cheers

Checked the code, operations seems fairly simple - very interestingly, though, when I replicate what you’ve gotten in the code via grasshopper components (no C#), even if I end up with the same amount of curves (169), in the same order - or not really I guess, the sweep fails. Funny . Learning :slight_smile:

Nevermind, I found the discrepancies after inspecting the connected lines.
Then I kept going using 3D proximity just for a quick test to try to match the ends of both rails:


Evidently, the resulting surfaces don’t have the required smoothness.
loft waves curves KO.gh (46.0 KB)
I think with this condition it’s tough to get away with smoothly matching the curve extremities.
Your surface looks nicer.

1 Like

I can do the extremities like this :


loft waves curves OK OK.gh (40.7 KB)

3 Likes

haha, of course! Makes sense :slight_smile: nice work