From f7997de9e44ef8f0e34fb9ad63573122777a4938 Mon Sep 17 00:00:00 2001 From: bakedpotatolord Date: Tue, 24 Jun 2025 11:15:05 -0600 Subject: [PATCH] add arc resolution option --- src/kiri/init.js | 2 ++ web/kiri/lang/en.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/kiri/init.js b/src/kiri/init.js index da39d075..d489ed21 100644 --- a/src/kiri/init.js +++ b/src/kiri/init.js @@ -1281,7 +1281,9 @@ gapp.register("kiri.init", (root, exports) => { _____: newGroup(LANG.op_xprt_s, $('cam-expert'), { group:"cam_expert", modes:CAM, marker: false, driven, separator }), camExpertFast: newBoolean(LANG.cx_fast_s, onBooleanClick, {title:LANG.cx_fast_l, show: () => !ui.camTrueShadow.checked }), camTrueShadow: newBoolean(LANG.cx_true_s, onBooleanClick, {title:LANG.cx_true_l, show: () => !ui.camExpertFast.checked }), + separator: newBlank({ class:"set-sep", driven }), camArcTolerance: newInput(LANG.cx_arct_s, {title:LANG.cx_arct_l, convert:toFloat, units, bound:bound(0,100)}), + camArcResolution: newInput(LANG.cx_arcr_s, {title:LANG.cx_arcr_l, convert:toFloat, bound:bound(0,180), show:() => ui.camArcTolerance.value > 0}), /** LASER/DRAG/WJET/WEDM cut tool Settings */ diff --git a/web/kiri/lang/en.js b/web/kiri/lang/en.js index e041035b..eefe5848 100644 --- a/web/kiri/lang/en.js +++ b/web/kiri/lang/en.js @@ -858,6 +858,8 @@ self.kiri.lang['en-us'] = { cx_true_l: ["computationally correct shadow","will be slower but produce","better cuts for complex parts"], cx_arct_s: "arc tolerance", cx_arct_l: ["convert cicrular paths to arcs;","center point drift tolerance","when matching arc points","consider values around 0.15","in mm, or 0.006 inches;","High values may cause","unexpected behavior","0 to disable"], + cx_arcr_s: "arc resolution", + cx_arcr_l: ["change in line direction","aceptible in an arc","consider values around 5","High values may cause","unexpected behavior",], // FDM GCODE ag_menu: "gcode",