Generation of a space truss along two curves

Hi, I’ve created a space truss unit and this unit should repeat itself along the two curves here, BUT the result is giving random shape.

The general idea is to generate the space truss between two points, this happens correctly when dealing with just two points, but when creating two curves, and dividing these two curves with the same number of points, the space truss should be generated at every two points from the two curves, this doesn’t happen.



this is the GH file

Curved Space Truss.gh (21.3 KB)

Hi,

divide points

Curved Space Truss rev1.gh (44.6 KB)

To have your script repeated for each pair of points along the curves, you want to graft each of the points coming out of each divided curve.
But usually flattening stuff in your script, undoes the effect of grafting going further upstream, so I undid where you flattened your points, and where necessary applied trim.

Regards

1 Like

Thanks Dani, this is amazing, thanks man!

1 Like