 # List of mathematical shapes and how to create them using Designscript

Hi,

I’m on a quest to get the corresponding disignscript of the shapes in this list and get as many as possible If this works it could be a treasure trove for all that come across this thread.
I got to this idea because i wanted to draw a parabolic line on paper (2D) , then bend the paper in a parabolic shape, making it 3D, and write it down using designscript.
Any help on this one?
So this idea of the treasure trove was born, and give this post a “like” if you support it.

Marcel

21 Likes
5 Likes

just a line

remember all Dynamo lines can be your walls with one extra node

5 Likes

Nurb 4 Likes

Great idea @Marcel_Rijsmus Not on the list, but had it in the archive.

Bell Curve. 6 Likes

Quartic Plane Curve - 3 Leaf Clover 7 Likes

I bet @Zach_Kron has some interesting examples.

3 Likes

Variations on the above 3 Leaf Clover = Rose Curves with Petal Parameters.

8 Likes

Lemniscate of Bernoulli or Infinity Sign ``````t = 1..1000;
x = (a * Math.Sqrt(2) * Math.Cos(t))/(Math.Pow(Math.Sin(t), 2) + 1);
y = (a * Math.Sqrt(2) * Math.Cos(t) * Math.Sin(t))/(Math.Pow(Math.Sin(t), 2) + 1);
pts = Autodesk.Point.ByCoordinates(x,y);
LemniscateOfBernoulli = NurbsCurve.ByControlPoints(pts);``````
8 Likes

Astroid Hypocycloid

``````t = 1..1000;
x = (a * Math.Pow(Math.Cos(t), 3));
y = (a * Math.Pow(Math.Sin(t),3));
pts = Autodesk.Point.ByCoordinates(x,y);
Astroid = NurbsCurve.ByControlPoints(pts);``````
8 Likes

Since petal count was a variable, I figured why not play with it? Added some height to really kick it up a notch and give it more form, and then looking at ALL possible inputs (ok 10 in this case, but you get the idea…)

https://www.fractal.live/share/5a39c35a179dcd7fa7434687

7 Likes

Multi-Sided Polygons 10 Likes

Parabola/Paraboloid

``````z = (0..h2..#u);
pi = Math.PI * 2;
uh = Math.Pow(z * h, 0.5);
points = Autodesk.Point.ByCoordinates(
z
);
polyCurve = PolyCurve.ByPoints(points, false);
``````

) 7 Likes

Great idea @Marcel_Rijsmus  4 Likes

Fillet 5 Likes
7 Likes

with little love heart shape curve

``````t=1..500;
x=12 * Math.Sin(t)-4 * Math.Sin(3 * t);
y=13 * Math.Cos(t)-5 * Math.Cos(2 * t)-2 * Math.Cos(3 * t)-Math.Cos(4 * t);
hs=Point.ByCoordinates(x,y);
Point.Translate(hs,Vector.XAxis(),0);``````
14 Likes

I don’t know if it is appropriate but I had a lot of fun doing this:
http://mathworld.wolfram.com/CannabisCurve.html

12 Likes

Could everyone amend his/her post to include the code to avoid re-typing ? 6 Likes

Ha good call - updated mine! 4 Likes