work around for microscopic objects in workspace

This commit is contained in:
Stewart Allen 2021-10-02 15:17:33 -04:00
commit 823e5c78aa

View file

@ -162,6 +162,11 @@
} }
} }
/** short-circuit for microscopic and invalid objects */
if (zMax == 0 || zSum == 0 || points.length == 0) {
return ondone([]);
}
/** /**
* bucket polygons into z-bounded groups (inside or crossing) * bucket polygons into z-bounded groups (inside or crossing)
* to reduce the search space in complex models * to reduce the search space in complex models