Help needed placing rectangles along a curve

Hello there,

I would like some help with a Grasshopper definition or c#/python node to achieve the result like in the image bellow:

What I want to input:

  1. Curve
  2. Start point on curve
  3. the rectangles (can be more or less)
  4. the arrangement of rectangles like (1,4,4,3,3,3,5,5,5)
  5. The X distance fixed for all placements

Any help will be much appreciated!

Hello,

I think this is feasible without too much work, except for that X dimension. Does it need to be exactly the minimum distance between rectangles ? Or corner to corner distance (not the minimum distance, see the space between your rectangles 2 and 3) ? Or could it be a higher value defined along the curve, sufficiently high to ensure the distance X is bigger that your target ?

Yep the X value should be a defined minimum corner to corner distance… can be higher than the minimum but not to much.

I would have liked it to be a fixed value That’s the ideal situation

C# for the win !

RectanglesOnCurve.gh (30.3 KB)

Thank you so much!