fix for some pool nesting errors

This commit is contained in:
Stewart Allen 2020-10-30 20:47:45 -04:00
commit 6cbf5abba0
3 changed files with 13 additions and 14 deletions

View file

@ -828,10 +828,9 @@
*/
PRO.isInside = function(poly, tolerance) {
// throw new Error("isInside");
if (!(
// poly.overlaps(this) &&
this.bounds.isNested(poly.bounds)
)) return false;
if (!this.bounds.isNested(poly.bounds, tolerance * 3)) {
return false;
}
let mid,
midcheck,