algorithmic modeling for Rhino
Hi,
super basic question for a super basic GH user!!!
I have a square of points created with "series" and I would like to connect them diagonally (as you can see in the attached picture).
I need to obtain separately the series of lines connecting each point of the rows diagonally (i.e. the line connecting point n.1 of the first row in the bottom with point n.0 in the second row. The line connecting point n.2 of the first row with point n.1 in the second row, and so on)
thanks a lot,
Federico
Tags:
I forgot to include the 'Tree/List Viewer' tool - attached.
Two great solutions!! Thanks a lot guys!
"Relative Item" is clearly the better approach and the one I tried first. But it's been a long time since I wrote any path mapper code and while I got the relative path syntax using "{}", I had forgotten the list item syntax using "()".
Using Hyungsoo Kim's code, it's interesting to note the many variations that are possible and the effect they have on the results.
In the construct point ('Pt') component, either 'X' or 'Y' can be grafted; the results will change from columns to rows of diagonal lines.
Four variations of the 'RelItem O (Offset)' input result in diagonals going the opposite direction; or you can skip the list 'Item' component and connect the panel of offset paths directly to 'RelItem O' and get all four variations at the same time.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2025 Created by Scott Davidson. Powered by