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
|
|
@ -200,8 +200,11 @@
|
|||
if (Math.abs(pslice.z - slice.z) > gap) {
|
||||
continue;
|
||||
}
|
||||
// TODO: offset pslice tops by spro.sliceSupportOffset
|
||||
let ptops = pslice.topPolys();
|
||||
// offset pslice tops by spro.sliceSupportOffset
|
||||
if (!pslice.synth_off) {
|
||||
pslice.synth_off = POLY.offset(pslice.topPolys(), nozzleSize/2 + spro.sliceSupportOffset);
|
||||
}
|
||||
let ptops = pslice.synth_off;
|
||||
let ntops = [];
|
||||
POLY.subtract(tops, ptops, ntops, null, slice.z, 0);
|
||||
tops = ntops;
|
||||
|
|
|
|||
Loading…
Reference in a new issue