add profiling. use simple tops for support clipping

This commit is contained in:
Stewart Allen 2021-06-24 22:23:42 -04:00
commit 80e8f1c8e6
3 changed files with 55 additions and 35 deletions

View file

@ -106,6 +106,10 @@
return this.tops.map(top => top.poly);
};
PRO.topSimples = function() {
return this.tops.map(top => top.simple);
};
// FDM top intersect optimization
PRO.topPolysFlat = function() {
if (this.topFlatPolys) {
@ -188,7 +192,7 @@
top.fill_off = poly.fill_off;
top.last = poly.last;
top.shells = poly.shells;
top.shadow = poly.shadow;
top.simple = poly.simple;
this.tops.push(top);
return top;
}