mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-09 08:16:50 +02:00
fixed begin > end of [begin:end] problem
This commit is contained in:
@@ -46,11 +46,11 @@ module arc(radius, angle, width, width_mode = "LINE_CROSS") {
|
|||||||
points = concat(
|
points = concat(
|
||||||
// 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])],
|
||||||
[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])],
|
[__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])],
|
[__ra_to_xy(edge_r_end(r_inner, angles[1]), angles[1])],
|
||||||
[
|
m > n ? [] : [
|
||||||
for(i = [m:n])
|
for(i = [m:n])
|
||||||
let(idx = (n + (m - i)))
|
let(idx = (n + (m - i)))
|
||||||
__ra_to_xy(r_inner, a_step * idx)
|
__ra_to_xy(r_inner, a_step * idx)
|
||||||
|
Reference in New Issue
Block a user