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

@ -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);
}