emit log message when surface matching is slow

This commit is contained in:
Stewart Allen 2022-03-31 15:53:33 -04:00
commit 2065e54213

View file

@ -590,9 +590,16 @@ mesh.model = class MeshModel extends mesh.object {
let { point, face } = int;
let { x, y, z } = point;
let { a, b, c } = face;
let timer = setTimeout(() => {
timer = undefined;
mesh.api.log.emit("matching surface...");
}, 500);
worker.model_select({
id: this.id, x, y:-z, z:y, a, b, c, matrix: this.matrix, radians
}).then(data => {
if (timer) {
clearTimeout(timer);
}
let { faces, edges, verts, point } = data;
// console.log({data});
// this.toggleSelectedVertices(verts);