diff --git a/src/_impl/_shape_superformula_impl.scad b/src/_impl/_shape_superformula_impl.scad index 35754f4c..043516d5 100644 --- a/src/_impl/_shape_superformula_impl.scad +++ b/src/_impl/_shape_superformula_impl.scad @@ -2,7 +2,8 @@ use <../__comm__/__ra_to_xy.scad>; use <../__comm__/__to_degree.scad>; function _superformula_r(angle, m1, m2, n1, n2 = 1, n3 = 1, a = 1, b = 1) = - (abs(cos(m1 * angle / 4) / a) ^ n2 + abs(sin(m2 * angle / 4) / b) ^ n3) ^ (- 1 / n1); + let(a_d4 = angle / 4) + (abs(cos(m1 * a_d4) / a) ^ n2 + abs(sin(m2 * a_d4) / b) ^ n3) ^ (-1 / n1); function _shape_superformula_impl(phi_step, m1, m2, n1, n2 = 1, n3 = 1, a = 1, b = 1) = let(tau = PI * 2)