1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-08 07:46:39 +02:00
This commit is contained in:
Justin Lin
2022-05-05 13:16:56 +08:00
parent 420738c25b
commit 108e2cc0ea

View File

@@ -12,11 +12,13 @@ use <__comm__/__frags.scad>;
function shape_ellipse(axes) = function shape_ellipse(axes) =
let( let(
frags = __frags(axes[0]), axes0 = axes[0],
axes1 = axes[1],
frags = __frags(axes0),
step_a = 360 / frags step_a = 360 / frags
) )
[ [
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)] [axes0 * cos(a), axes1 * sin(a)]
]; ];