> For the complete documentation index, see [llms.txt](https://gitbook.testingwaters.in/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.testingwaters.in/geometry-1/sine-ribbon.md).

# Sine Ribbon

Create a form using an equation to modify the form of a sine wave

<figure><img src="https://1430428134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ld8QK19sjP1I9rhLouo%2Fuploads%2Fvmqk0YtpGte2ExeyjZXn%2FsineRibbon.png?alt=media&amp;token=ec59d2ab-0e8b-4681-a105-fcbf06886db3" alt=""><figcaption><p>Sine Ribbon</p></figcaption></figure>

```d
n = 6;
u = 0..(90*n)..#(50*n);
v = 0..(180*n)..#(50*n);

x = (Math.DegreesToRadians(u))*2;
y = (Math.Sin(u)*Math.Cos(u))*2;
z = Math.Pow(Math.Sin(v),4);

c = NurbsCurve.ByPoints(Point.ByCoordinates(x,y,z));

d = c.Mirror(Plane.XY()).Mirror(Plane.XZ()).Translate(0,0,2);

e = Surface.ByLoft([c,d]).Thicken(0.1)
```
