try using xor to heal non-manifold / overlapping sliced polys. aka deathstar fix

This commit is contained in:
Stewart Allen 2024-07-13 16:51:22 -04:00
commit d7d136ad8c
5 changed files with 54 additions and 7 deletions

View file

@ -828,7 +828,13 @@ FDM.export = function(print, online, ondone, ondebug) {
}
// update time and distance (should calc in moveTo() instead)
time += (dist / speedMMM) * 60 * timeFactor;
if (dist && speedMMM) {
time += (dist / speedMMM) * 60 * timeFactor;
}
// if (isNaN(time)) {
// console.log({ layer, path, dist, speedMMM, timeFactor });
// throw "NaN";
// }
distance += dist;
subst.progress = progress = Math.round((distance / totaldistance) * 100);