How can I move points parallel to the ground plane?

Hi guys!
I’m quite new to the Grasshopper field but I’m eager to learn.
That’s why I have already tried for 4 months now to solve this problem on my own and with different books and tutorials, but I arrived at the end of my nerves.

Now here is my issue:
I own a ceramic 3D-printer and want to try this “loops pattern” in a simple form (with extruded curves in the respective layer height, so that the slicer also understands it and that I don’t need to export .gcode directly from GH).
The problem I face is, that if I want to move points away from the original surface, to generate the loops path ( a zig-zag curve), the points are oriented normally to the wavy surface and don’t spread evenly and parallel to the ground plane.

I hope you know what I mean.
I put my definition down here and also a screenshot of how the object looks like in my Rhino window and how the loops should approx. look like in the end.
Please help – you are my last chance!

Thank you in advance.


Loops Try.gh (18.3 KB)

There are several solutions, you could project your normal vectors onto XY plane before the Amplitude component.
Or offset the section curves and project the points onto them with Curve Closest Point.

Loops Try.gh (26.3 KB)

1 Like

Thank you so much for your help!!! Now it works :partying_face:
You saved my sleep for the following nights :pray: :blush:
Can’t find words for my gratitude! You’re a hero.