mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-20 13:31:30 +02:00
format
This commit is contained in:
@@ -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])
|
[
|
||||||
let(a = i * step_a)
|
for(i = [0:frags - 1])
|
||||||
[axes[0] * cos(a), axes[1] * sin(a)]
|
let(a = i * step_a)
|
||||||
]
|
[axes[0] * cos(a), axes[1] * sin(a)]
|
||||||
) shape_pts;
|
];
|
Reference in New Issue
Block a user