add purge tower area control. remove pause layers (will return with scripting). fix palette splice material info
This commit is contained in:
parent
7306ef5c0c
commit
29432b6dfd
7 changed files with 32 additions and 25 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue