1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-20 13:31:30 +02:00

we don't need to repeat the first one

This commit is contained in:
Justin Lin
2017-05-25 17:40:22 +08:00
parent a2b62df5d1
commit 844a061ee2

View File

@@ -23,8 +23,7 @@ function _superformula_r(angle, m1, m2, n1, n2 = 1, n3 = 1, a = 1, b = 1) =
);
function shape_superformula(phi_step, m1, m2, n1, n2 = 1, n3 = 1, a = 1, b = 1) =
let(
pts = [
[
for(phi = [0:phi_step:6.28318])
let(
angle = __to_degree(phi),
@@ -32,7 +31,4 @@ function shape_superformula(phi_step, m1, m2, n1, n2 = 1, n3 = 1, a = 1, b = 1)
)
__ra_to_xy(r, angle)
],
shape_pts = concat(pts, [pts[0]])
) shape_pts;
];