From 1d682c0f5e7672598d7f517330e72f09464699c8 Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Mon, 6 Dec 2021 21:48:02 -0500 Subject: [PATCH] allow short path + min speed on belt base to go slower than belt print speed --- src/kiri/init.js | 2 +- src/mode/fdm/prepare.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/kiri/init.js b/src/kiri/init.js index 62cba324..c818c8d8 100644 --- a/src/kiri/init.js +++ b/src/kiri/init.js @@ -1895,7 +1895,7 @@ outputRetractDwell: UC.newInput(LANG.ad_rdwl_s, {title:LANG.ad_rdwl_l, convert:UC.toInt, modes:FDM}), fdmSep: UC.newBlank({class:"pop-sep", modes:FDM}), sliceSolidMinArea: UC.newInput(LANG.ad_msol_s, {title:LANG.ad_msol_l, convert:UC.toFloat, modes:FDM}), - outputMinSpeed: UC.newInput(LANG.ad_mins_s, {title:LANG.ad_mins_l, bound:UC.bound(5,200), convert:UC.toFloat, modes:FDM}), + outputMinSpeed: UC.newInput(LANG.ad_mins_s, {title:LANG.ad_mins_l, bound:UC.bound(1,200), convert:UC.toFloat, modes:FDM}), outputShortPoly: UC.newInput(LANG.ad_spol_s, {title:LANG.ad_spol_l, bound:UC.bound(0,10000), convert:UC.toFloat, modes:FDM}), outputCoastDist: UC.newInput(LANG.ad_scst_s, {title:LANG.ad_scst_l, bound:UC.bound(0.0,10), convert:UC.toFloat, modes:FDM}), fdmSep: UC.newBlank({class:"pop-sep", modes:FDM}), diff --git a/src/mode/fdm/prepare.js b/src/mode/fdm/prepare.js index 04930435..40029d42 100644 --- a/src/mode/fdm/prepare.js +++ b/src/mode/fdm/prepare.js @@ -587,7 +587,7 @@ // post-process for base extrusions (touching the bed) if (isBelt) { - // // correct y offset to desired layer offset + // correct y offset to desired layer offset let seqn = 0; // tune base threshold let thresh = Infinity; @@ -627,11 +627,11 @@ miny = Math.min(miny, belty); if (layer.anchor) { // apply base rate to entire anchor (including bump) - rec.speed = lowrate; + rec.speed = Math.min(rec.speed, lowrate); } if (rec.emit && belty <= thresh && lastout && Math.abs(lastout.belty - belty) < 0.005) { // apply base speed to segments touching belt - rec.speed = lowrate; + rec.speed = Math.min(rec.speed, lowrate); rec.emit *= bmult; minx = Math.min(minx, point.x, lastout.point.x); maxx = Math.max(maxx, point.x, lastout.point.x);