rename Render to Layers
This commit is contained in:
parent
33574454b6
commit
e23c9dfc9b
9 changed files with 33 additions and 24 deletions
|
|
@ -219,7 +219,7 @@
|
|||
KIRI.api.widgets.all().forEach(widget => {
|
||||
let stack = STACKS.create(`trace-${widget.id}`, widget.mesh);
|
||||
widget.traces.forEach(slice => {
|
||||
stack.add(slice.render);
|
||||
stack.add(slice.layers);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
@ -465,7 +465,7 @@
|
|||
|
||||
const {x, y, z} = stock;
|
||||
if (x && y && z && !STACKS.getStack('bounds')) {
|
||||
const render = new KIRI.Render().setLayer('bounds', { face: 0xaaaaaa, line: 0xaaaaaa });
|
||||
const render = new KIRI.Layers().setLayer('bounds', { face: 0xaaaaaa, line: 0xaaaaaa });
|
||||
const stack = STACKS.setFreeMem(false).create('bounds', SPACE.platform.world);
|
||||
stack.add(render.addPolys([
|
||||
newPolygon().centerRectangle({x:csox, y:csoy, z:0}, x, y),
|
||||
|
|
|
|||
|
|
@ -316,7 +316,7 @@
|
|||
.setLayer("contour x", {face: 0, line: 0})
|
||||
.addPolys(sliceout);
|
||||
}
|
||||
onupdate(++stepsTaken, stepsTotal, "contour x");
|
||||
onupdate(++stepsTaken, stepsTotal, "contour y");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -355,7 +355,7 @@
|
|||
.setLayer("contour y", {face: 0, line: 0})
|
||||
.addPolys(sliceout);
|
||||
}
|
||||
onupdate(++stepsTaken, stepsTotal, "contour y");
|
||||
onupdate(++stepsTaken, stepsTotal, "contour x");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -457,7 +457,7 @@
|
|||
const heads = [];
|
||||
const retracts = [];
|
||||
const engages = [];
|
||||
const output = new KIRI.Render();
|
||||
const output = new KIRI.Layers();
|
||||
layers.push(output);
|
||||
|
||||
const pushPrint = (toolid, poly) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue