mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-01 09:49:45 +00:00
Fixed // handling for arcs with negative arc angles.
This commit is contained in:
parent
d64b836e8b
commit
f1a70f62f3
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ function arc(N, r, angle, d, cp, points, width, thickness, start, wedge=false) =
|
|||
start = is_def(start)? start : is_vector(angle) ? angle[0] : 0,
|
||||
angle = is_vector(angle)? angle[1]-angle[0] : angle,
|
||||
r = get_radius(r=r,d=d),
|
||||
N = max(3, is_undef(N)? ceil(segs(r)*angle/360) : N),
|
||||
N = max(3, is_undef(N)? ceil(segs(r)*abs(angle)/360) : N),
|
||||
arcpoints = [for(i=[0:N-1]) let(theta = start + i*angle/(N-1)) r*[cos(theta),sin(theta)]+cp],
|
||||
extra = wedge? [cp] : []
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue