From 9ff7289946a80cd67b15ebad1f64197d8360f1e2 Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Sun, 30 Jan 2022 21:49:06 -0500 Subject: [PATCH] add mesh notes --- notes.md | 5 ++++- src/mesh/tool.js | 7 ++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/notes.md b/notes.md index 2158910d..1fb69bc8 100644 --- a/notes.md +++ b/notes.md @@ -122,7 +122,10 @@ # Mesh:Tool -* add fix op: isolate = separate bodies +* add section view. local clip. raycast skip points above plane +* add isolate op = separate bodies +* add decimate op = face reduction +* add union op (applied after isolate) * add flatten/crush op: for z bottoms * face selection: find regions with < delta to normal * better z snap using just vertexes from face intersected diff --git a/src/mesh/tool.js b/src/mesh/tool.js index fbf715a9..42d88acc 100644 --- a/src/mesh/tool.js +++ b/src/mesh/tool.js @@ -14,7 +14,12 @@ if (mesh.tool) return; let geom = mesh.geom; -/** tool for identiying defects and healing them **/ +/** + * tool for identiying defects and healing them + * copied from base/mesh which is used by KM. the + * two need to be merged. earcut needs to be migrated + * to base.util.triagulate + */ mesh.tool = class MeshTool { constructor(params = {}) { this.precision = Math.pow(10, params.precision || 6);