fix support z (y) touching bed. fix slice support offset
This commit is contained in:
parent
9f1a9747e4
commit
5af2e5a509
2 changed files with 7 additions and 2 deletions
|
|
@ -202,6 +202,8 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!iw) return;
|
if (!iw) return;
|
||||||
|
p1.y = Math.max(0, p1.y);
|
||||||
|
p2.y = Math.max(0, p2.y);
|
||||||
let hy = (p1.y + p2.y) / 2;
|
let hy = (p1.y + p2.y) / 2;
|
||||||
let dh = Math.abs(p1.y - p2.y);
|
let dh = Math.abs(p1.y - p2.y);
|
||||||
let dw = api.conf.get().process.sliceSupportSize / 2;
|
let dw = api.conf.get().process.sliceSupportSize / 2;
|
||||||
|
|
|
||||||
|
|
@ -200,8 +200,11 @@
|
||||||
if (Math.abs(pslice.z - slice.z) > gap) {
|
if (Math.abs(pslice.z - slice.z) > gap) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// TODO: offset pslice tops by spro.sliceSupportOffset
|
// offset pslice tops by spro.sliceSupportOffset
|
||||||
let ptops = pslice.topPolys();
|
if (!pslice.synth_off) {
|
||||||
|
pslice.synth_off = POLY.offset(pslice.topPolys(), nozzleSize/2 + spro.sliceSupportOffset);
|
||||||
|
}
|
||||||
|
let ptops = pslice.synth_off;
|
||||||
let ntops = [];
|
let ntops = [];
|
||||||
POLY.subtract(tops, ptops, ntops, null, slice.z, 0);
|
POLY.subtract(tops, ptops, ntops, null, slice.z, 0);
|
||||||
tops = ntops;
|
tops = ntops;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue