fix thin3 chain marking and shortening
This commit is contained in:
parent
046c071333
commit
32d4b7e62a
2 changed files with 86 additions and 39 deletions
|
|
@ -258,7 +258,7 @@ export class Polygon {
|
|||
// of the polygon with the noodle removed (for the next pass)
|
||||
noodle(width) {
|
||||
let clone = this.clone(true);
|
||||
let ins = clone.offset(width);
|
||||
let ins = clone.offset(width) ?? [];
|
||||
let remain = ins.clone(true);
|
||||
let nood = POLY.nest(POLY.flatten([ clone, ...ins ], [], true));
|
||||
return { noodle: nood, remain };
|
||||
|
|
|
|||
Loading…
Reference in a new issue