1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-04-16 12:03:32 +02:00
This commit is contained in:
Justin Lin 2017-05-24 20:13:10 +08:00
parent 4e3c6681f4
commit 54f2001c43

View File

@ -34,7 +34,7 @@ module pie(radius, angle) {
points = concat(
[[0, 0], __ra_to_xy(edge_r_begin(angles[0]), angles[0])],
m >= n ? [] : [for(i = [m:n]) __ra_to_xy(radius, a_step * i)],
m > n ? [] : [for(i = [m:n]) __ra_to_xy(radius, a_step * i)],
angles[1] == a_step * n ? [] : [__ra_to_xy(edge_r_end(angles[1]), angles[1])]
);