1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-18 06:38:14 +01:00

return origin when r is too small

This commit is contained in:
Justin Lin 2017-05-17 09:19:36 +08:00
parent 36d24a2726
commit f9b1d7b822

View File

@ -4,7 +4,7 @@ function __pie_for_rounding(r, begin_a, end_a, frags) =
step_a = sector_angle / frags,
is_integer = frags % 1 == 0
)
concat([
r < 0.00005 ? [[0, 0]] : concat([
for(ang = [begin_a:step_a:end_a])
[
r * cos(ang),