Bending Polylines with Grasshopper

Hey there,

I’m working on a proof-of-concept script, but I’m limited by my own skills (and understanding what ChatGPT wants me to do). The goal is to have a polyline that can bend at two fixed hinges. Attached are the GH file, the Rhino file, and a link to the ChatGPT conversion to view the process. Eventually, this script will (hopefully) be able to do this with solid geometries in the future

One thought I have is to give more control: instead of controlling the hinge points with sliders, base them in the Rhino scene.

If there’s someone out there who could help with this, I would be so thankful.

Kind regards,

Cam

https://chatgpt.com/share/698e6887-d290-8008-8ff5-552c54b90d36

two point rotation.gh (7.1 KB)

two point rotation.3dm (53.5 KB)

This is meaningless to me. Even less so to ChatGPT.

Can you illustrate the expected result?

Hey Martin,

sure thing this is the end goal -

That rectangle around hte curved polyline is only acting as a bounding box with its centerline indicated

Hey Volker,

sorry to hear that you feel above this. I’m still learning the program and this forum, in conjunction with AI for clarification questions, have been really helpful for me as a beginner.

have a good day.

You can split the curve with the rotation axis and then rotate the parts.

This is not bending, this is just rotating. Were you actually thinking of bending?


as i understand u are a complete beginner, so that is probably what you are after

two point rotation.gh (15.0 KB)
PS. I forgot to join curves in the end, use join curves component

If I get this right, you’re politely telling @Volker_Rakow to fugg off. If that is the case, maybe stick with AI…

@martinsiegrist No no… It’s fine. It’s a younger generation. They don’t understand AI is just a tool and to be able to get an answer from it (or a person) you need to be able to sensibly formulate a question.

This is often the most difficult task…

By “polyline” I am going to assume you mean a closed planar curve, and by “hinges” I’ll assume you mean bend axes:

two point rotation VR 01.gh (19.0 KB)

uuuu the rotation animation is so satisfying

Hey Volker,

Wow, this is exactly what I had imagined. Thank you.

I’m sorry for my earlier comments as well. This past week has had me spread thin between classwork, both my research internships, and my TA duties with the undergraduate college studios. I was acting on impulse and not rationally.

If you’d be willing and, most of all, have the time to do so. Could you virtually meet with me and teach me some fundamentals?

We just got off on the wrong foot. I wasn’t nearly as offended as Martin may have suggested.

Unfortunately, I’m busy. If you have questions, post them to the forum. I’ll answer if I can. Otherwise some of the other good people here will surely help.

I appreciate that. Thank you again