mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-11 01:04:07 +02:00
fixed end angle problems
This commit is contained in:
@@ -47,9 +47,9 @@ module arc(radius, angle, width, width_mode = "LINE_CROSS") {
|
|||||||
// outer arc path
|
// outer arc path
|
||||||
[__ra_to_xy(edge_r_begin(r_outer, angles[0]), angles[0])],
|
[__ra_to_xy(edge_r_begin(r_outer, angles[0]), angles[0])],
|
||||||
m >= n ? [] : [for(i = [m:n]) __ra_to_xy(r_outer, a_step * i)],
|
m >= n ? [] : [for(i = [m:n]) __ra_to_xy(r_outer, a_step * i)],
|
||||||
[__ra_to_xy(edge_r_end(r_outer, angles[1]), angles[1])],
|
angles[1] == a_step * n ? [] : [__ra_to_xy(edge_r_end(r_outer, angles[1]), angles[1])],
|
||||||
// inner arc path
|
// inner arc path
|
||||||
[__ra_to_xy(edge_r_end(r_inner, angles[1]), angles[1])],
|
angles[1] == a_step * n ? [] : [__ra_to_xy(edge_r_end(r_inner, angles[1]), angles[1])],
|
||||||
m >= n ? [] : [
|
m >= n ? [] : [
|
||||||
for(i = [m:n])
|
for(i = [m:n])
|
||||||
let(idx = (n + (m - i)))
|
let(idx = (n + (m - i)))
|
||||||
|
@@ -35,7 +35,7 @@ module pie(radius, angle) {
|
|||||||
points = concat(
|
points = concat(
|
||||||
[[0, 0], __ra_to_xy(edge_r_begin(angles[0]), angles[0])],
|
[[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)],
|
||||||
[__ra_to_xy(edge_r_end(angles[1]), angles[1])]
|
angles[1] == a_step * n ? [] : [__ra_to_xy(edge_r_end(angles[1]), angles[1])]
|
||||||
);
|
);
|
||||||
|
|
||||||
polygon(points);
|
polygon(points);
|
||||||
|
Reference in New Issue
Block a user