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

@ -88,7 +88,7 @@ kiri.load(api => {
CAM.surface_find = function(widget, faces) {
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) {

View file

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

View file

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