add vertext deletion. move mode menu to top

This commit is contained in:
Stewart Allen 2022-01-13 20:23:48 -05:00
commit 94311917e7
6 changed files with 133 additions and 27 deletions

View file

@ -114,6 +114,7 @@ let model = {
let faces = [];
let verts = [];
let edges = [];
let point;
for (let i=0, l=arr.length; i<l; ) {
// matches here are within radius of a vertex
// select all faces that share a matched vertex
@ -141,7 +142,7 @@ let model = {
if (faces.length === 0) {
faces.push(Math.min(a,b,c) / 3);
}
return { faces, edges, verts };
return { faces, edges, verts, point };
}
};