Modify curve so all the segment lengths are rounded to a length


I am trying to make a grasshopper script to enable me to modify a polyline making all the segments lengths rounded to 1.2m but keeping the same orientation of the original curve. The method I started with was cyclic meaning that I had to keep repeating the script over and over again. By rounding the length of the first segment to 1.2m then moving the rest of the curve to the end then selecting the second segment and doing the same again.

I was wondering whether there was a way of automating it to work on any length curve.



Round Segment lengths.3dm (335.2 KB) Round Segment (14.1 KB)

Like this?

Round Segment (141.3 KB)