fix CAM vertical face selection and step over defaults

This commit is contained in:
Stewart Allen 2023-01-11 22:05:41 -05:00
commit 94753bdfee
5 changed files with 5 additions and 5 deletions

View file

@ -18,9 +18,9 @@ Full docs @ https://docs.grid.space/projects/kiri-moto
* slicing memory reduction from team lychee * slicing memory reduction from team lychee
* option to control first output point order * option to control first output point order
* CAM add control to omit initial tool change * CAM add control to omit initial tool change
* CAM fix vertical face selection and step over defaults
- refactor object/group storage model in Mesh:Tool - refactor object/group storage model in Mesh:Tool
- select near or vertical pocket faces
- add omit pocket to rough and outline - add omit pocket to rough and outline

View file

@ -88,7 +88,7 @@ kiri.load(api => {
CAM.surface_find = function(widget, faces) { CAM.surface_find = function(widget, faces) {
CAM.surface_prep(widget); CAM.surface_prep(widget);
return widget.tool.findConnectedSurface(faces, 0.1, 0.1); return widget.tool.findConnectedSurface(faces, 0.1, 0.0);
}; };
kiri.worker.cam_surfaces = function(data, send) { kiri.worker.cam_surfaces = function(data, send) {

View file

@ -508,7 +508,7 @@ const conf = exports({
camTraceBottom: false, camTraceBottom: false,
camPocketSpindle: 1000, camPocketSpindle: 1000,
camPocketTool: 1000, camPocketTool: 1000,
camPocketOver: 0.5, camPocketOver: 0.25,
camPocketDown: 1, camPocketDown: 1,
camPocketSpeed: 250, camPocketSpeed: 250,
camPocketPlunge: 200, camPocketPlunge: 200,

View file

@ -226,7 +226,7 @@ mesh.tool = class MeshTool {
// depends on index() being run first // depends on index() being run first
findConnectedSurface(faces, radians, filterZ, found = {}) { findConnectedSurface(faces, radians, filterZ, found = {}) {
const norms = this.getIndex().faces; const norms = this.getIndex().faces;
if (filterZ) { if (filterZ !== undefined) {
// optional filter to z normal >= value // optional filter to z normal >= value
faces = faces.filter(f => norms[f * 6 + 2] >= filterZ); faces = faces.filter(f => norms[f * 6 + 2] >= filterZ);
} }

View file

@ -443,7 +443,7 @@ self.kiri.lang['en-us'] = {
cc_spnd_s: "spindle rpm", cc_spnd_s: "spindle rpm",
cc_spnd_l: ["spindle speed in","revolutions / minute"], cc_spnd_l: ["spindle speed in","revolutions / minute"],
cc_sovr_s: "step over", cc_sovr_s: "step over",
cc_sovr_l: ["a fraction of tool diameter between 0 and 1. values greater than 0.5 may result in uncut areas from acute angle offsets."], cc_sovr_l: ["a fraction of tool diameter between 0 and 1. values greater than 0.49 may result in uncut areas from acute angle offsets or undesirable artifacts when contour is enabled."],
cc_sdwn_s: "step down", cc_sdwn_s: "step down",
cc_sdwn_l: ["step down depth","for each pass","in workspace units","0 to disable"], cc_sdwn_l: ["step down depth","for each pass","in workspace units","0 to disable"],
cc_thru_s: "cut thru", cc_thru_s: "cut thru",