prevent short z delta cuts outside of contouring
This commit is contained in:
parent
8d05cb7a2b
commit
cc23ec6efe
2 changed files with 7 additions and 6 deletions
2
notes.md
2
notes.md
|
|
@ -60,8 +60,6 @@
|
||||||
|
|
||||||
# CAM
|
# CAM
|
||||||
|
|
||||||
* `B` increase tab height by z bottom
|
|
||||||
* `B` prevent z delta cuts when not contouring
|
|
||||||
* `B` climb vs conventional not fully consistent after refactor
|
* `B` climb vs conventional not fully consistent after refactor
|
||||||
* `B` outside cutting direction in roughing mode inverted
|
* `B` outside cutting direction in roughing mode inverted
|
||||||
* `B` clear voids has double interior pass because wrong offset shadow used
|
* `B` clear voids has double interior pass because wrong offset shadow used
|
||||||
|
|
|
||||||
|
|
@ -239,10 +239,12 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// convert short planar moves to cuts
|
// convert short planar moves to cuts in some cases
|
||||||
// TODO delta Z cuts should only be active in contouring
|
|
||||||
if (isMove && deltaXY <= toolDiamMove) {
|
if (isMove && deltaXY <= toolDiamMove) {
|
||||||
if (absDeltaZ <= tolerance) {
|
let iscontour = lastMode === PRO.CONTOUR_X || lastMode === PRO.CONTOUR_Y;
|
||||||
|
let isflat = absDeltaZ < 0.001;
|
||||||
|
// restrict this to contouring
|
||||||
|
if (isflat || (iscontour && absDeltaZ <= tolerance)) {
|
||||||
cut = 1;
|
cut = 1;
|
||||||
isMove = false;
|
isMove = false;
|
||||||
} else if (deltaZ <= -tolerance) {
|
} else if (deltaZ <= -tolerance) {
|
||||||
|
|
@ -251,7 +253,8 @@
|
||||||
// new pos for plunge calc
|
// new pos for plunge calc
|
||||||
deltaXY = 0;
|
deltaXY = 0;
|
||||||
}
|
}
|
||||||
} else {
|
} //else
|
||||||
|
{
|
||||||
// for longer moves, check the terrain to see if we need to go up and over
|
// for longer moves, check the terrain to see if we need to go up and over
|
||||||
const bigXY = (deltaXY > toolDiam);
|
const bigXY = (deltaXY > toolDiam);
|
||||||
const bigZ = (deltaZ > toolDiam/2 && deltaXY > tolerance);
|
const bigZ = (deltaZ > toolDiam/2 && deltaXY > tolerance);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue