fix CAM vertical face selection and step over defaults
This commit is contained in:
parent
09109a896d
commit
94753bdfee
5 changed files with 5 additions and 5 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue