List of mathematical shapes and how to create them using Designscript

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