CHAIN links along a curve

Chain_on_Curve.3dm (37.6 KB)

Chain_on_curve.gh (14.6 KB)

Hi everyone,

I am working on a Grasshopper definition where I need to create a dynamic chain along a curve. The chain needs to adapt if the curve changes.

What I have:

  • A single chain link geometry as an input. Pipe for the next step.
  • A base curve.
  • A definition setup using Perp Frames to generate planes along the curve, Dispatch and Rotate to separate and combine alternating links, and Orient to place the geometry.

What I am trying to achieve:
I want the chain links to alternate along the curve (every second link needs to be rotated by 90 degrees to interlock properly, creating a realistic chain).

I have attached files of my current canvas and model.

Could anyone please point out what I am doing wrong with the planes, data structure, or the Orient component setup? Since this is for a homework assignment, I really need to understand where my mistake is.

Thank you in advance for your help!

chain.gh (15.5 KB)

chain3.gh (37.7 KB)

Thanks, @leopoldomonzani

I have several questions, even though I know there are many ways to do this. For example, why did you use Horizontal Frames after the Crv component instead of Perp Frames? I also don’t see Orient or Dispatch anywhere in the definition. Your approach did solve my problem, but it leaves me a bit confused. I’m learning this step by step, and you used several components I didn’t know about.

But amazing work, thank you!
DA

Rectangles are built on horizontal frames that must be oriented to align the chain link to the next stitch. (Orientation is not necessary)

I wanted to try another way to post Dispatch.(see image)