pre-compute de-rez'd top shadow in slicing pass which can be co-locataed with original slice data
This commit is contained in:
parent
e2ef4ff7e2
commit
210bf10ee0
2 changed files with 16 additions and 11 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue