drop wipe endpoints outside centering poly. drop fill attempt for anchor lines
This commit is contained in:
parent
f71dedb5d5
commit
beeea2387c
4 changed files with 14 additions and 4 deletions
|
|
@ -544,7 +544,10 @@
|
|||
let last = array.last();
|
||||
last.retract = true;
|
||||
if (wipeDist && lastPoly && last.point) {
|
||||
addOutput(array, last.point.followTo(lastPoly.center(true), wipeDist));
|
||||
let endpoint = last.point.followTo(lastPoly.center(true), wipeDist);
|
||||
if (endpoint.inPolygon(lastPoly)) {
|
||||
addOutput(array, endpoint);
|
||||
}
|
||||
}
|
||||
} else if (opt.pretract) {
|
||||
opt.pretract(wipeDist);
|
||||
|
|
|
|||
|
|
@ -608,7 +608,8 @@ self.onmessage = function(e) {
|
|||
data: output
|
||||
});
|
||||
} catch (wrkerr) {
|
||||
console.log({wrkerr});
|
||||
// console.log(wrkerr);
|
||||
console.trace(wrkerr.stack);
|
||||
send.done({error: wrkerr.toString()});
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -409,7 +409,10 @@
|
|||
let lastOut = lastLayer.last();
|
||||
lastOut.retract = true;
|
||||
if (wipeDist && lastPoly && lastOut.point) {
|
||||
print.addOutput(lastLayer, lastOut.point.followTo(lastPoly.center(true).add(offset), wipeDist));
|
||||
let endpoint = lastOut.point.followTo(lastPoly.center(true).add(offset), wipeDist);
|
||||
if (endpoint.inPolygon(lastPoly)) {
|
||||
print.addOutput(lastLayer, endpoint);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -943,6 +943,10 @@
|
|||
|
||||
// create empty filled line array for each top
|
||||
tops.forEach(function(top) {
|
||||
// synth belt anchor tops don't want fill
|
||||
if (!top.fill_lines) {
|
||||
return;
|
||||
}
|
||||
const tofill = [];
|
||||
const angfill = [];
|
||||
const newfill = [];
|
||||
|
|
@ -968,7 +972,6 @@
|
|||
top.fill_lines_ang.poly.push(af.clone());
|
||||
});
|
||||
}
|
||||
|
||||
top.fill_lines.appendAll(newfill);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue