fix trace recontour by making it a negative down option
This commit is contained in:
parent
a4ff70e054
commit
46724db7bf
1 changed files with 2 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ class OpTrace extends CamOp {
|
|||
let cutdir = ov_conv;
|
||||
let polys = [];
|
||||
let reContour = false;
|
||||
let canRecontour = offset !== 'none' && down === 0;
|
||||
let canRecontour = offset !== 'none' && down < 0;
|
||||
let stockRect = stock.center && stock.x && stock.y ?
|
||||
newPolygon().centerRectangle({x:0,y:0}, stock.x, stock.y) : undefined;
|
||||
updateToolDiams(toolDiam);
|
||||
|
|
@ -57,6 +57,7 @@ class OpTrace extends CamOp {
|
|||
let max = Math.max(...zs);
|
||||
if (max - min > 0.0001 && canRecontour) {
|
||||
reContour = true;
|
||||
down = 0;
|
||||
}
|
||||
}
|
||||
if (false) newSliceOut(0).output()
|
||||
|
|
|
|||
Loading…
Reference in a new issue