separate generation from render

This commit is contained in:
Stewart Allen 2022-02-15 23:25:32 -05:00
commit 2430ab2a07

View file

@ -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;