1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-21 22:05:27 +02: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) = function shape_ellipse(axes) =
let( let(
frags = __frags(axes[0]), frags = __frags(axes[0]),
step_a = 360 / frags, step_a = 360 / frags
shape_pts = [ )
[
for(i = [0:frags - 1]) for(i = [0:frags - 1])
let(a = i * step_a) let(a = i * step_a)
[axes[0] * cos(a), axes[1] * sin(a)] [axes[0] * cos(a), axes[1] * sin(a)]
] ];
) shape_pts;