add purge tower area control. remove pause layers (will return with scripting). fix palette splice material info

This commit is contained in:
Stewart Allen 2021-11-15 00:14:21 -05:00
commit 29432b6dfd
7 changed files with 32 additions and 25 deletions

View file

@ -176,10 +176,10 @@
}
let loops = isBelt && rloops.length ? rloops : undefined;
(process.gcodePauseLayers || "").split(",").forEach(function(lv) {
let v = parseInt(lv);
if (v >= 0) pause.push(v);
});
// (process.gcodePauseLayers || "").split(",").forEach(function(lv) {
// let v = parseInt(lv);
// if (v >= 0) pause.push(v);
// });
append = function(line) {
if (line) {
@ -826,7 +826,7 @@
// force emit of buffer
append();
// console.log({segments, emitted, outputLength});
print.segments = isPalette ? segments : undefined;
print.distance = emitted;
print.lines = lines;

View file

@ -39,7 +39,7 @@
firstLayerSeek = process.outputSeekrate,
firstLayerRate = process.firstLayerRate,
firstLayerMult = process.firstLayerPrintMult,
purgeTower = process.outputPurgeTower || false,
purgeTower = process.outputPurgeTower || 0,
layerRetract = process.outputLayerRetract,
layerno = 0,
zoff = 0,
@ -243,7 +243,8 @@
}
// determine size/location of purge blocks
let blokw = isPalette ? 20 : 10, blokh = isPalette ? 20 : 10;
let blokw = Math.sqrt(purgeTower),
blokh = blokw;
let stepw = blokw + nozzle / 2;
let blokpos, walkpos, blok;