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 :slight_smile:

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.

Your contribution will be appreciated.

Marcel

24 Likes

Catenary by @Vikram_Subbaiah

catenary.dyn (9.5 KB)

Marcel

5 Likes

just a line

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

5 Likes

Nurb
nurb

4 Likes

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

Bell Curve.
image

6 Likes

Quartic Plane Curve - 3 Leaf Clover
image

8 Likes

I bet @Zach_Kron has some interesting examples.

3 Likes

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

10 Likes

Lemniscate of Bernoulli or Infinity Sign
Lemniscate of Bernoulli

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);
9 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


image

10 Likes

Parabola/Paraboloid

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

)

image

7 Likes

Great idea @Marcel_Rijsmus :grinning::muscle:

4 Likes

Fillet

image

5 Likes

a simple circle

7 Likes

with little love :slight_smile:

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);
17 Likes

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

16 Likes

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

6 Likes

Ha good call - updated mine! :slight_smile:

4 Likes