rework of 43fdeef to honor clipping when expanded
This commit is contained in:
parent
5ac59f416b
commit
93d92e3aec
1 changed files with 3 additions and 1 deletions
|
|
@ -1230,6 +1230,8 @@ class OpPocket extends CamOp {
|
|||
}
|
||||
if (contour) {
|
||||
expand = engrave ? 0 : expand;
|
||||
} else if (expand) {
|
||||
polys = POLY.offset(polys, expand);
|
||||
}
|
||||
let zpro = 0, zinc = 1 / (polys.length * zs.length);
|
||||
for (let poly of polys) {
|
||||
|
|
@ -1258,7 +1260,7 @@ class OpPocket extends CamOp {
|
|||
if (toolDiam) {
|
||||
const offs = contour ?
|
||||
[ expand || (-0.02), -toolOver ] :
|
||||
[ expand || (-toolDiam / 2), -toolOver ];
|
||||
[ -toolDiam / 2, -toolOver ];
|
||||
POLY.offset(clip, offs, {
|
||||
count, outs: slice.camLines = [], flat:true, z
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue