add draft shield option to extend brim to part height
This commit is contained in:
parent
928834e110
commit
6912b132e9
4 changed files with 13 additions and 1 deletions
|
|
@ -41,9 +41,11 @@
|
|||
firstLayerMult = process.firstLayerPrintMult,
|
||||
purgeTower = process.outputPurgeTower || 0,
|
||||
layerRetract = process.outputLayerRetract,
|
||||
draftShield = process.outputDraftShield,
|
||||
layerno = 0,
|
||||
zoff = 0,
|
||||
zmin = 0,
|
||||
brimout,
|
||||
layerout = [],
|
||||
print = self.worker.print = KIRI.newPrint(settings, widgets),
|
||||
beltfact = Math.cos(Math.PI/4);
|
||||
|
|
@ -154,7 +156,7 @@
|
|||
// if using brim vs raft
|
||||
if (process.outputBrimCount) {
|
||||
let polys = [],
|
||||
preout = [];
|
||||
preout = brimout = [];
|
||||
|
||||
// offset specified # of brims
|
||||
POLY.offset(brims, nozzle, {
|
||||
|
|
@ -548,6 +550,12 @@
|
|||
lastExt = lastOut.extruder;
|
||||
lastPoly = slice.lastPoly;
|
||||
lastLayer = layerout;
|
||||
|
||||
// draft shield
|
||||
if (brimout && draftShield) {
|
||||
print.addPrintPoints(brimout, layerout, null);
|
||||
}
|
||||
|
||||
if (layerRetract && layerout.length) {
|
||||
layerout.last().retract = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -349,6 +349,7 @@
|
|||
firstLayerFlatten: 0,
|
||||
outputRaft: false,
|
||||
outputRaftSpacing: 0.2,
|
||||
outputDraftShield: false,
|
||||
outputTemp: 200,
|
||||
outputBedTemp: 60,
|
||||
outputFeedrate: 50,
|
||||
|
|
|
|||
|
|
@ -1782,6 +1782,7 @@
|
|||
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}),
|
||||
fdmSep: UC.newBlank({class:"pop-sep", modes:FDM, show:isNotBelt}),
|
||||
outputDraftShield: UC.newBoolean(LANG.fr_draf_s, onBooleanClick, {title:LANG.fr_draf_l, modes:FDM, trigger: true, show:isNotBelt}),
|
||||
outputRaftSpacing: UC.newInput(LANG.fr_spac_s, {title:LANG.fr_spac_l, convert:UC.toFloat, bound:UC.bound(0.0,3.0), modes:FDM, show: () => UI.outputRaft.checked && isNotBelt() }),
|
||||
outputRaft: UC.newBoolean(LANG.fr_nabl_s, onBooleanClick, {title:LANG.fr_nabl_l, modes:FDM, trigger: true, show:isNotBelt}),
|
||||
|
||||
|
|
|
|||
|
|
@ -359,6 +359,8 @@ kiri.lang['en-us'] = {
|
|||
fr_spac_l: ["additional layer spacing","between 1st layer and raft","in millimeters"],
|
||||
fr_nabl_s: "raft enable",
|
||||
fr_nabl_l: ["create a raft under the","model for better adhesion","uses skirt offset and","disables skirt output"],
|
||||
fr_draf_s: "draft shield",
|
||||
fr_draf_l: ["extend brim to height of part","which acts as a shield","and traps hot air"],
|
||||
|
||||
// FDM BELT ONLY
|
||||
fl_zoff_s: "belt offset",
|
||||
|
|
|
|||
Loading…
Reference in a new issue