pre-compute de-rez'd top shadow in slicing pass which can be co-locataed with original slice data

This commit is contained in:
Stewart Allen 2021-06-23 23:34:12 -04:00
commit 210bf10ee0
2 changed files with 16 additions and 11 deletions

View file

@ -177,15 +177,18 @@
PRO.addTop = function(poly) {
if (poly.length) {
// standard legacy polygon
let top = new Top(poly);
this.tops.push(top);
return top;
} else {
// frop top object passed back by slicePost()
let top = new Top(poly.poly);
top.fill_lines = poly.fill_lines;
top.fill_off = poly.fill_off;
top.last = poly.last;
top.shells = poly.shells;
top.shadow = poly.shadow;
this.tops.push(top);
return top;
}