add mesh notes

This commit is contained in:
Stewart Allen 2022-01-30 21:49:06 -05:00
commit 9ff7289946
2 changed files with 10 additions and 2 deletions

View file

@ -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

View file

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