mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-30 08:19:36 +00:00
Fixed warning message in arc_of() module
This commit is contained in:
parent
74702b5863
commit
099fa0c5ad
1 changed files with 3 additions and 5 deletions
|
@ -484,11 +484,9 @@ module arc_of(
|
|||
sa=0.0, ea=360.0,
|
||||
rot=false
|
||||
) {
|
||||
r = (d == undef)?r:(d/2.0);
|
||||
rx = (dx == undef)?rx:(dx/2.0);
|
||||
ry = (dy == undef)?rx:(dy/2.0);
|
||||
rx = (rx == undef)?r:rx;
|
||||
ry = (ry == undef)?r:ry;
|
||||
r = (d != undef)? d/2 : r;
|
||||
rx = (dx != undef)? dx/2 : ((rx != undef)? rx : r);
|
||||
ry = (dy != undef)? dy/2 : ((ry != undef)? ry : r);
|
||||
sa = ((sa % 360.0) + 360.0) % 360.0; // make 0 < ang < 360
|
||||
ea = ((ea % 360.0) + 360.0) % 360.0; // make 0 < ang < 360
|
||||
n = (abs(ea-sa)<0.01)?(n+1):n;
|
||||
|
|
Loading…
Reference in a new issue