Creating wave pattern with graph mapper

Hi, I am trying to create a script that can produce this sort of pattern between any two lines I draw
3991367830632e7bbd412601b0e627e7

This is as far as I have gotten, but I am running into several problems, and I am new to Grasshopper, so I am lost as to how to fix them

Here is the script so far (hopefully I have exported this properly):
Curved Ladder Test.gh (30.6 KB)

So what’s missing from this script:

  1. a way to create the linking line between the center of each sine wave (see first image)
  2. a command to keep the curves within the boundary of the source curves
  3. a (scaling?) function so that there are more/less peaks and valleys depending on the distance between the base curves

please let me know how I can accomplish this, and if there is a better way to write the script than what I currently have. thanks!

Edit: in order to try and fix problems 2 & 3, I changed my source curves to instead be the offsets of the mean curve, with the plan being to just use the trim tool in rhino once I’ve baked the curves. (see below). This is somewhat of an improvement, but something still looks off in terms of the spacing between waves and the rotation of each wave. And I’m still drawing a blank on how to solve the first problem I brough up of the linking lines.

1 Like