add first move Z optionality

This commit is contained in:
Stewart Allen 2023-01-11 10:58:30 -05:00
commit 937c2910f8
5 changed files with 8 additions and 1 deletions

View file

@ -15,6 +15,8 @@ Full docs @ https://docs.grid.space/projects/kiri-moto
* add CAM origin offset optional parameters * add CAM origin offset optional parameters
* remove auto-decimation on object import * remove auto-decimation on object import
* fix FDM raft line fill strategy * fix FDM raft line fill strategy
* slicing memory reduction from team lychee
* option to control first CAM output point order
- refactor object/group storage model in Mesh:Tool - refactor object/group storage model in Mesh:Tool

View file

@ -211,7 +211,7 @@ CAM.export = function(print, online) {
if (points === 0) { if (points === 0) {
pos.x = pos.y = pos.z = 0; pos.x = pos.y = pos.z = 0;
points++; points++;
if (newpos.z > pos.z) { if (spro.camFirstZMax) {
moveTo({ moveTo({
// speed: Infinity, // speed: Infinity,
tool: out.tool, tool: out.tool,

View file

@ -581,6 +581,7 @@ const conf = exports({
camExpertFast: false, camExpertFast: false,
camTrueShadow: false, camTrueShadow: false,
camForceZMax: false, camForceZMax: false,
camFirstZMax: false,
ops: [], // current ops ops: [], // current ops
op2: [] // flip ops op2: [] // flip ops
} }

View file

@ -1974,6 +1974,8 @@ gapp.register("kiri.init", [], (root, exports) => {
camConventional: uc.newBoolean(LANG.ou_conv_s, onBooleanClick, {title:LANG.ou_conv_l, modes:CAM}), camConventional: uc.newBoolean(LANG.ou_conv_s, onBooleanClick, {title:LANG.ou_conv_l, modes:CAM}),
camEaseDown: uc.newBoolean(LANG.cr_ease_s, onBooleanClick, {title:LANG.cr_ease_l, modes:CAM}), camEaseDown: uc.newBoolean(LANG.cr_ease_s, onBooleanClick, {title:LANG.cr_ease_l, modes:CAM}),
camDepthFirst: uc.newBoolean(LANG.ou_depf_s, onBooleanClick, {title:LANG.ou_depf_l, modes:CAM}), camDepthFirst: uc.newBoolean(LANG.ou_depf_s, onBooleanClick, {title:LANG.ou_depf_l, modes:CAM}),
fdmSep: uc.newBlank({class:"pop-sep", modes:FDM_CAM}),
camFirstZMax: uc.newBoolean(LANG.ou_z1st_s, onBooleanClick, {title:LANG.ou_z1st_l, modes:CAM}),
camForceZMax: uc.newBoolean(LANG.ou_forz_s, onBooleanClick, {title:LANG.ou_forz_l, modes:CAM}), camForceZMax: uc.newBoolean(LANG.ou_forz_s, onBooleanClick, {title:LANG.ou_forz_l, modes:CAM}),
outputOriginBounds: uc.newBoolean(LANG.or_bnds_s, onBooleanClick, {title:LANG.or_bnds_l, modes:LASER}), outputOriginBounds: uc.newBoolean(LANG.or_bnds_s, onBooleanClick, {title:LANG.or_bnds_l, modes:LASER}),
outputOriginCenter: uc.newBoolean(LANG.or_cntr_s, onBooleanClick, {title:LANG.or_cntr_l, modes:LASER}), outputOriginCenter: uc.newBoolean(LANG.or_cntr_s, onBooleanClick, {title:LANG.or_cntr_l, modes:LASER}),

View file

@ -678,6 +678,8 @@ self.kiri.lang['en-us'] = {
ou_depf_l: ["optimize pocket cuts","with depth priority"], ou_depf_l: ["optimize pocket cuts","with depth priority"],
ou_forz_s: "force z max", ou_forz_s: "force z max",
ou_forz_l: "all moves between pockets will go to z max (above stock). this is usually required if you are not performing a roughing operation before pocketing operations.", ou_forz_l: "all moves between pockets will go to z max (above stock). this is usually required if you are not performing a roughing operation before pocketing operations.",
ou_z1st_s: "first z max",
ou_z1st_l: "first move in the job will be to Z max (travel distance above stock)",
// CAM STOCK // CAM STOCK
cs_menu: "stock", cs_menu: "stock",