experiment with less memory intensive mesh indexing

This commit is contained in:
Stewart Allen 2022-04-13 20:40:45 -04:00
commit f4e928a703
3 changed files with 112 additions and 7 deletions

View file

@ -420,12 +420,12 @@ const tool = {
});
},
mapFaces(models) {
mapFaces(models, opt = {}) {
models = fallback(models);
api.log.emit('mapping faces').pin();
let promises = [];
for (let m of models) {
let p = worker.model_mapFaces({ id: m.id }).then(data => {
let p = worker.model_mapFaces({ id: m.id, opt }).then(data => {
// console.log({map_info: data});
});
promises.push(p);