make bounding recs stock-bound
This commit is contained in:
parent
9d5b5371fe
commit
5899f2eafe
1 changed files with 2 additions and 2 deletions
|
|
@ -657,7 +657,7 @@ class OpOutline extends CamOp {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (process.camStockClipTo && stock.x && stock.y && stock.center) {
|
if (process.camStockClipTo && stock.x && stock.y && stock.center) {
|
||||||
let rect = newPolygon().centerRectangle(stock.center, stock.x, stock.y);
|
let rect = newPolygon().centerRectangle({x:0,y:0}, stock.x, stock.y);
|
||||||
offset = cutPolys([rect], offset, slice.z, true);
|
offset = cutPolys([rect], offset, slice.z, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1000,7 +1000,7 @@ class OpTrace extends CamOp {
|
||||||
let cutdir = ov_conv;
|
let cutdir = ov_conv;
|
||||||
let polys = [];
|
let polys = [];
|
||||||
let stockRect = stock.center && stock.x && stock.y ?
|
let stockRect = stock.center && stock.x && stock.y ?
|
||||||
newPolygon().centerRectangle(stock.center, stock.x, stock.y) : undefined;
|
newPolygon().centerRectangle({x:0,y:0}, stock.x, stock.y) : undefined;
|
||||||
updateToolDiams(toolDiam);
|
updateToolDiams(toolDiam);
|
||||||
|
|
||||||
if (tabs) {
|
if (tabs) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue