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:
@@ -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),
|
||||||
|
Reference in New Issue
Block a user