another pool nesting fix requiring matching windings
This commit is contained in:
parent
88c52242b1
commit
273eed2bb9
2 changed files with 11 additions and 0 deletions
|
|
@ -1056,6 +1056,10 @@
|
|||
// console.log({skip_open_above:above});
|
||||
continue;
|
||||
}
|
||||
// do not allow inner and outer polys to mix
|
||||
if (!above.sameWindings(pool)) {
|
||||
continue;
|
||||
}
|
||||
// if pool fits into smallest above pool, add it and break
|
||||
if (polygonFitsIn(pool, above, 0.1)) {
|
||||
above.poolsDown.push(pool);
|
||||
|
|
|
|||
Loading…
Reference in a new issue