fix donut top forming ring on top=0

This commit is contained in:
Stewart Allen 2020-11-24 17:35:39 -05:00
commit 1878d6392c

View file

@ -176,7 +176,7 @@
let flats = [];
let shadow = [];
let slices = [];
let indices = slicer.interval(roughDown, { down: true, min: zBottom, fit: true, boff: 0.01 });
let indices = slicer.interval(roughDown, { down: true, min: zBottom, fit: true, off: 0.01 });
if (proc.camRoughFlat) {
let flats = Object.keys(slicer.zFlat)
.map(v => parseFloat(v).round(4))
@ -311,7 +311,7 @@
let shadow = [];
let slices = [];
let indices = slicer.interval(outlineDown, { down: true, min: zBottom, fit: true, boff: 0.01 });
let indices = slicer.interval(outlineDown, { down: true, min: zBottom, fit: true, off: 0.01 });
// add flats to shadow
const flats = Object.keys(slicer.zFlat)
.map(v => (parseFloat(v) - 0.01).round(5))