fix pocket outline only with thru holes
This commit is contained in:
parent
24e7cdedfa
commit
6ead32637e
2 changed files with 11 additions and 4 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue