drop wipe endpoints outside centering poly. drop fill attempt for anchor lines

This commit is contained in:
Stewart Allen 2021-02-09 19:08:28 -05:00
commit beeea2387c
4 changed files with 14 additions and 4 deletions

View file

@ -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);