Hi, I have a polyline with “x” amount of segments and I want to rotate this segments so I can create a rectangular spiral. Same as the picture. Thanks.
Not actually rotating the segments…
As the direction (vector) of the segments of that spiral is +X,+Y,-X,-Y , a fast solution can be obtained with Dispatch-Weave and Mass addiction:
square_spiral.gh (6.8 KB)
The vectors before Mass Addiction are the “incremental” of the path, like the G91 in G-Code, doing the mass addiction give a result that, interpreted as points, are the absolute positioning (G90)…
3 Likes
1 Like
Thanks Joseph!
another one from me, just just because I have never used this sequence-thing spiral_rectangular.gh (11.1 KB)
2 Likes
Thanks Ricardo!, I undertand your method, is similar to Joseph’s
Given a list of ‘sorted segment lengths’ and a ReMap component, it can look like this:
Spiral_2020Oct23c.gh (12.2 KB)
1 Like