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}`);
|
// offset.xout(`slice ${slice.z}`);
|
||||||
slice.camLines = offset;
|
slice.camLines = offset;
|
||||||
|
});
|
||||||
|
|
||||||
|
// project empty up and render
|
||||||
|
for (let slice of slices) {
|
||||||
if (false) slice.output()
|
if (false) slice.output()
|
||||||
.setLayer("slice", {line: 0xaaaa00}, false)
|
.setLayer("slice", {line: 0xaaaa00}, false)
|
||||||
.addPolys(slice.topPolys())
|
.addPolys(slice.topPolys())
|
||||||
slice.output()
|
slice.output()
|
||||||
.setLayer("outline", {face: color, line: color})
|
.setLayer("outline", {face: color, line: color})
|
||||||
.addPolys(offset);
|
.addPolys(slice.camLines);
|
||||||
});
|
}
|
||||||
|
|
||||||
sliceAll.appendAll(slices);
|
sliceAll.appendAll(slices);
|
||||||
this.sliceOut = slices;
|
this.sliceOut = slices;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue