1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-12 09:44:16 +02: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, step_a = sector_angle / frags,
is_integer = frags % 1 == 0 is_integer = frags % 1 == 0
) )
concat([ r < 0.00005 ? [[0, 0]] : concat([
for(ang = [begin_a:step_a:end_a]) for(ang = [begin_a:step_a:end_a])
[ [
r * cos(ang), r * cos(ang),