experimental approach to offsetting open polylines in trace
This commit is contained in:
parent
f217df382d
commit
58d8abb469
2 changed files with 13 additions and 4 deletions
|
|
@ -1051,7 +1051,7 @@ class OpTrace extends CamOp {
|
|||
case "inside": offdist = -traceOffset; break;
|
||||
}
|
||||
if (offdist) {
|
||||
let pnew = POLY.offset([poly], offdist, { minArea: 0 });
|
||||
let pnew = POLY.offset([poly], offdist, { minArea: 0, open: true });
|
||||
if (pnew) {
|
||||
poly = POLY.setZ(pnew, poly.getZ());
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue