add geo/mesh class to contain repair utilities

This commit is contained in:
Stewart Allen 2021-09-06 18:10:34 -04:00
commit 36be938d2a
4 changed files with 190 additions and 2 deletions

View file

@ -303,6 +303,11 @@ console.log/** Copyright Stewart Allen <sa@grid.space> -- All Rights Reserved */
}
};
PRO.debugMesh = function(precision) {
let mesh = new base.Mesh({precision, vertices: this.getVertices().array});
return mesh;
};
PRO.getVertices = function() {
return this.mesh.geometry.attributes.position;
};