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

View file

@ -323,7 +323,7 @@ FDM.slice = function(settings, widget, onupdate, ondone) {
healed = true;
slice.changes = changes;
if (self.debug) {
console.log('slice healed', slice.index, slice.z);
console.log('slice healed', slice.index, slice.z, changes);
}
}
if (process.xray) {