For a project I am working with some sine waves, I got it working kind of how I want but struggling with one imperative point of this.
I want te create a few waves with different values ie, height and repetitions. But all sine waves need to start at 0,0,0mm and end at 1000,0,0mm I got it now till the point that the wave stops at 1000mm on the x axis but I need it to stop, and be on 1000,0,0 (so on the base line)
I try to understand what sort of math I need to incorporate to make it work but I can’t figure it out… anybody has a way of doing this?
btw i need lines to sometimes arrives from -y and sometimes from +y, so that would mean not al waves need to be 360, sometimes start at 180 and end at 180 etc etc.
I’m not sure what the file you attached is - it seems unrelated to your question and image. Are you sure you uploaded the right file?
Anyway, to make sine waves that are zero at the start and end of a curve, you can reparametrize and evaluate the curve from zero to one, multiply this t value by some integer*Pi and take the sine of that: sinewave.gh (8.0 KB)
It seems your file works, but, only with uneven numbers (5,7,9 etc) if I divide by 6, you see at the end of the line a tiny piece of the next line, sorry hard to explain…
ah wow! yesss, only adjustable heigt and some offset at the start, to make some lines start at 180 degrees… I have been struggling for two nights with this haha