mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-02-19 10:09:39 +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,
|
sa=0.0, ea=360.0,
|
||||||
rot=false
|
rot=false
|
||||||
) {
|
) {
|
||||||
r = (d == undef)?r:(d/2.0);
|
r = (d != undef)? d/2 : r;
|
||||||
rx = (dx == undef)?rx:(dx/2.0);
|
rx = (dx != undef)? dx/2 : ((rx != undef)? rx : r);
|
||||||
ry = (dy == undef)?rx:(dy/2.0);
|
ry = (dy != undef)? dy/2 : ((ry != undef)? ry : r);
|
||||||
rx = (rx == undef)?r:rx;
|
|
||||||
ry = (ry == undef)?r:ry;
|
|
||||||
sa = ((sa % 360.0) + 360.0) % 360.0; // make 0 < ang < 360
|
sa = ((sa % 360.0) + 360.0) % 360.0; // make 0 < ang < 360
|
||||||
ea = ((ea % 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;
|
n = (abs(ea-sa)<0.01)?(n+1):n;
|
||||||
|
|
Loading…
Reference in a new issue