Merge branch 'master' into cam-topo-new
This commit is contained in:
commit
4f2ccd2049
7 changed files with 12 additions and 7 deletions
|
|
@ -958,14 +958,14 @@ class OpTrace extends CamOp {
|
|||
poly2polyEmit(polys, newPoint(0,0,0), (poly, index, count, spoint) => {
|
||||
routed.push(poly);
|
||||
});
|
||||
for (let poly of routed) {
|
||||
for (let poly of POLY.nest(routed)) {
|
||||
let offdist = 0;
|
||||
switch (offset) {
|
||||
case "outside": offdist = toolDiam / 2; break;
|
||||
case "inside": offdist = -toolDiam / 2; break;
|
||||
}
|
||||
if (offdist) {
|
||||
let pnew = POLY.offset([poly], offdist);
|
||||
let pnew = POLY.offset([poly], offdist, { minArea: 0 });
|
||||
if (pnew) {
|
||||
poly = POLY.setZ(pnew, poly.getZ());
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue