Need assistance with my grasshopper code

Towers week 2.3dm (177.1 KB)
Code2.gh (28.8 KB)


In my image here I have this wavy facade going around 2 faces of my shape, I achieved this by setting two curves and changing the direction it extrudes. HOWEVER, I need it to be one code that continuously goes around on all sides. I know your suppose to explode brep then indicate the direction each face should be, I’m just stuck on this part and what to do after. If someone could help with my code that would be much appreciated.

With this definition I built the elements on a baseline then moved them to the target lines.
Code2 a.gh (51.6 KB)

Here, however, the elements are built directly on the lines of the rectangle.
Or on polylines.

Code2 b.gh (69.2 KB)