algorithmic modeling for Rhino
Hi,
I have few rectangles made with "Rectanlge 2Pt" component from the list.I would like to move them from point 0,0,0 with let's say 5 units distance beetween each of them.
I took lenghts o longest segment from them and have a list.
So if understand it - it should always be a addition of all items from list until each rectangle lenght:
second rectangle position: RectangleSegmentLenght1 + distance
third: RectangleSegmentLenght1 + distance + RectangleSegmentLenght2 + distance + RectangleSegmentLenght3 + distance
fourth: RectangleSegmentLenght1 + distance + RectangleSegmentLenght2 + distance + RectangleSegmentLenght3 + distance
and so on...
Tags:
If you want to move them on X axis, can use only the first panel of X coord. The fact is you need for i item the sum of all previos values at i item, that is, for item(0) = 0, for item(1) = 0 + 1, for item(2) = 0 +1+2, for item(3) = 0+1+2+3... Using Series you can do it, and add a value for the custom separation.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by