add belt lead in option

This commit is contained in:
Stewart Allen 2021-01-28 18:04:45 -05:00
commit e1250f5f93
4 changed files with 14 additions and 1 deletions

View file

@ -312,6 +312,7 @@
firstLayerBedTemp: 0,
firstLayerBrim: 0,
firstLayerBrimTrig: 0,
firstLayerBeltLead: 3,
outputRaft: false,
outputRaftSpacing: 0.2,
outputTemp: 200,

View file

@ -1650,8 +1650,11 @@
fdmSep: UC.newBlank({class:"pop-sep", modes:FDM, show:isNotBelt}),
firstLayerLineMult: UC.newInput(LANG.fl_sfac_s, {title:LANG.fl_sfac_l, convert:UC.toFloat, bound:UC.bound(0.5,2), modes:FDM, show:isNotBelt}),
firstLayerPrintMult: UC.newInput(LANG.fl_mult_s, {title:LANG.fl_mult_l, convert:UC.toFloat, modes:FDM}),
fdmSep: UC.newBlank({class:"pop-sep", modes:FDM, show:isBelt}),
firstLayerBrim: UC.newInput(LANG.fl_brim_s, {title:LANG.fl_brim_l, convert:UC.toFloat, modes:FDM, show:isBelt}),
firstLayerBrimTrig: UC.newInput(LANG.fl_brmn_s, {title:LANG.fl_brmn_l, convert:UC.toFloat, modes:FDM, show:isBelt}),
fdmSep: UC.newBlank({class:"pop-sep", modes:FDM, show:isBelt}),
firstLayerBeltLead: UC.newInput(LANG.fl_bled_s, {title:LANG.fl_bled_l, convert:UC.toFloat, modes:FDM, show:isBelt}),
fdmSep: UC.newBlank({class:"pop-sep", modes:FDM, show:isNotBelt}),
outputBrimCount: UC.newInput(LANG.fl_skrt_s, {title:LANG.fl_skrt_l, convert:UC.toInt, modes:FDM, show:isNotBelt}),
outputBrimOffset: UC.newInput(LANG.fl_skro_s, {title:LANG.fl_skro_l, convert:UC.toFloat, modes:FDM, show:isNotBelt}),

View file

@ -457,6 +457,13 @@
rec.point.y += poff;
}
}
// add lead in, when specified
if (process.firstLayerBeltLead) {
// add belt lead in
console.log({process, output});
}
let thresh = firstLayerHeight * 1.05;
// iterate over layers, find extrusion on belt and
// apply corrections and add brim when specified
@ -482,7 +489,7 @@
}
lastout = rec;
}
// skip if brig trigger not met
// skip if brim trigger not met
if (firstLayerBrimTrig > 0 && mins > firstLayerBrimTrig) {
continue;
}

View file

@ -235,6 +235,8 @@ kiri.lang['en-us'] = {
fl_brim_l: "add brim to part bottom\nsize is width in millimeters\n0 to disable",
fl_brmn_s: "brim trigger",
fl_brmn_l: "add brims only when segment\nfacing belt is shorter than this\nvalue in millimeters\n0 = Infinity",
fl_bled_s: "part anchor",
fl_bled_l: "belt part anchor\nat start of print\nin millimeters",
// FDM SUPPORT
sp_menu: "support",