debugging indexed geometry
This commit is contained in:
parent
c86c90d915
commit
9b77c837e3
5 changed files with 63 additions and 41 deletions
|
|
@ -197,8 +197,12 @@ function space_init(data) {
|
|||
moto.client.fn.model_heal(m.id)
|
||||
.then(data => {
|
||||
if (data) {
|
||||
m.wireframe(false);
|
||||
m.reload(data.vertices.toFloat32());
|
||||
console.log({data});
|
||||
m.load(
|
||||
// Float32Array.from(data.vertices.toFloat32()),
|
||||
Float32Array.from([...data.v]),
|
||||
Uint32Array.from([...data.f])
|
||||
);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue