persist vertex edits

This commit is contained in:
Stewart Allen 2022-01-13 21:17:35 -05:00
commit 8c5309739f
3 changed files with 14 additions and 7 deletions

View file

@ -110,7 +110,7 @@ let model = {
x = v3.x; y = v3.y; z = v3.z;
let arr = cache[id].geo.attributes.position.array;
// distance tolerance for click to vertex (rough distance)
let eps = 1;
let eps = 0.25;
let faces = [];
let verts = [];
let edges = [];
@ -129,7 +129,7 @@ let model = {
if (dx < eps && dy < eps && dz < eps) {
faces.addOnce(face);
verts.push(vert);
console.log(`match @ ${i-3} = ${face}`, ax, ay, az);
// console.log(`match @ ${i-3} = ${face}`, ax, ay, az);
}
}
// no matches and we look at the line segments from the provided face