Sine wave

How to create a wave pattern on a rectangle that smoothly joins the first and last points,


hi @abhishek.khatavakar
sine testing.dyn (34.3 KB)


think you have to run it in cycles of 360 to complete …
Try this.
Cheers KS

4 Likes

Yes now its working,
Thanks @Kai

2 Likes

You could simplify by connecting the curve divisions to each side and adding 1 so that the correct number of segments are created and it always lands on a corner. 0..1..#40 is 39 segments or 9.75 per side.
Then use the same logic to create the angles and Math.Cos() so the wave starts and finishes at the base.
It is easy to add amplitude as well

3 Likes