add model cleaning

This commit is contained in:
Stewart Allen 2022-01-11 22:42:43 -05:00
commit 4797a72810
4 changed files with 34 additions and 9 deletions

View file

@ -88,8 +88,9 @@ let model = {
return { stats, mapped };
},
heal(id) {
let tool = analyze(id, { merge: true });
heal(data) {
let { id, opt } = data;
let tool = analyze(id, opt);
log(`${id} | unrolling...`);
return {
vertices: tool.unrolled().toFloat32(),