1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-03-14 02:59:42 +01:00
This commit is contained in:
Justin Lin 2022-04-18 10:38:49 +08:00
parent 62849b5374
commit 892aa245da

View File

@ -13,10 +13,10 @@ use <__comm__/__frags.scad>;
function shape_ellipse(axes) =
let(
frags = __frags(axes[0]),
step_a = 360 / frags,
shape_pts = [
for(i = [0:frags - 1])
let(a = i * step_a)
[axes[0] * cos(a), axes[1] * sin(a)]
]
) shape_pts;
step_a = 360 / frags
)
[
for(i = [0:frags - 1])
let(a = i * step_a)
[axes[0] * cos(a), axes[1] * sin(a)]
];