1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-12 09:44:16 +02:00
This commit is contained in:
Justin Lin
2020-01-11 14:12:08 +08:00
parent 6873f12403
commit 5cfa5108d4

View File

@@ -14,8 +14,7 @@ include <__comm__/__edge_r.scad>;
function arc_path(radius, angle) = function arc_path(radius, angle) =
let( let(
frags = __frags(radius), a_step = 360 / __frags(radius),
a_step = 360 / frags,
angles = is_num(angle) ? [0, angle] : angle, angles = is_num(angle) ? [0, angle] : angle,
m = floor(angles[0] / a_step) + 1, m = floor(angles[0] / a_step) + 1,
n = floor(angles[1] / a_step), n = floor(angles[1] / a_step),