fix offsetting when clear selected for traces
This commit is contained in:
parent
65b81e1c44
commit
4c367d18b6
1 changed files with 11 additions and 1 deletions
|
|
@ -1146,7 +1146,17 @@ class OpTrace extends CamOp {
|
|||
if (op.bottom && camZBottom) {
|
||||
z = Math.max(z, camZBottom) - zbo;
|
||||
}
|
||||
(zmap[z] = zmap[z] || []).push(poly);
|
||||
if (offover) {
|
||||
let pnew = POLY.offset([poly], -offover, { minArea: 0, open: true });
|
||||
if (pnew) {
|
||||
poly = POLY.setZ(pnew, poly.getZ());
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
} else {
|
||||
poly = [ poly ];
|
||||
}
|
||||
(zmap[z] = zmap[z] || []).appendAll(poly);
|
||||
}
|
||||
for (let [zv, polys] of Object.entries(zmap)) {
|
||||
clearZ(polys, parseFloat(zv), down);
|
||||
|
|
|
|||
Loading…
Reference in a new issue