Spiral with polyline segments

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)…

2 Likes


Spiral_2020Oct23b.gh (12.0 KB)

1 Like

Thanks Joseph!

another one from me, just just because I have never used this sequence-thing :slight_smile:spiral_rectangular.gh (11.1 KB)

1 Like

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)

With walls:


Spiral_2020Oct23d.gh (15.8 KB)