separate generation from render
This commit is contained in:
parent
c09607e219
commit
2430ab2a07
1 changed files with 6 additions and 2 deletions
|
|
@ -547,13 +547,17 @@
|
|||
|
||||
// offset.xout(`slice ${slice.z}`);
|
||||
slice.camLines = offset;
|
||||
});
|
||||
|
||||
// project empty up and render
|
||||
for (let slice of slices) {
|
||||
if (false) slice.output()
|
||||
.setLayer("slice", {line: 0xaaaa00}, false)
|
||||
.addPolys(slice.topPolys())
|
||||
slice.output()
|
||||
.setLayer("outline", {face: color, line: color})
|
||||
.addPolys(offset);
|
||||
});
|
||||
.addPolys(slice.camLines);
|
||||
}
|
||||
|
||||
sliceAll.appendAll(slices);
|
||||
this.sliceOut = slices;
|
||||
|
|
|
|||
Loading…
Reference in a new issue