1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-06 14:56:47 +02:00

single a_step is ok

This commit is contained in:
Justin Lin
2021-09-10 15:17:33 +08:00
parent 89096ad329
commit b1b61fddbf

View File

@@ -30,13 +30,12 @@ module superellipsoid(e, n) {
b = 1; b = 1;
c = 1; c = 1;
u_step = 360 / __frags(1); a_step = 360 / __frags(1);
v_step = u_step / 2;
sweep([ sweep([
for(v = [-90:v_step:90]) for(v = [-90:a_step:90])
[ [
for(u = 180 - u_step; u >= -180; u = u - u_step) for(u = 180 - a_step; u >= -180; u = u - a_step)
let( let(
x = a * _c(v, n) * _c(u, e), x = a * _c(v, n) * _c(u, e),
y = b * _c(v, n) * _s(u, e), y = b * _c(v, n) * _s(u, e),