mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-01-17 22:28:16 +01:00
fixed begin > end of [begin:end] problem
This commit is contained in:
parent
29762e878a
commit
0aedfca43c
@ -46,11 +46,11 @@ module arc(radius, angle, width, width_mode = "LINE_CROSS") {
|
||||
points = concat(
|
||||
// outer arc path
|
||||
[__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])],
|
||||
// inner arc path
|
||||
[__ra_to_xy(edge_r_end(r_inner, angles[1]), angles[1])],
|
||||
[
|
||||
m > n ? [] : [
|
||||
for(i = [m:n])
|
||||
let(idx = (n + (m - i)))
|
||||
__ra_to_xy(r_inner, a_step * idx)
|
||||
|
Loading…
x
Reference in New Issue
Block a user