fix pocket outline only with thru holes

This commit is contained in:
Stewart Allen 2025-02-28 23:25:52 -05:00
commit 6ead32637e
2 changed files with 11 additions and 4 deletions

View file

@ -41,6 +41,7 @@ const ClipperLib = self.ClipperLib,
;
const POLYS = base.polygons = {
clearInner,
rayIntersect,
alignWindings,
setWinding,
@ -104,6 +105,12 @@ function setZ(polys, z) {
return polys;
}
function clearInner(polys) {
for (let p of polys) {
p.clearInner();
}
}
function toClipper(polys = []) {
let out = [];
for (let poly of polys) {