Great project, thanks for sharing!
I ran into an error in the unindexBufferGeometry function when I used a gltf model and ThreeJS v0.146.0.
data.attribute.setArray is not a function, on line 74 of geom.js.
After some googling I found that the whole function can be replaced with a new function from ThreeJS (> v0.128.0).
Line 158 of index.js can be replaced with:
geometry = geometry.toNonIndexed()
I'm not sure everything works with this new version but wanted to share the info.
Great project, thanks for sharing!
I ran into an error in the unindexBufferGeometry function when I used a gltf model and ThreeJS v0.146.0.
data.attribute.setArrayis not a function, on line 74 ofgeom.js.After some googling I found that the whole function can be replaced with a new function from ThreeJS (> v0.128.0).
Line 158 of
index.jscan be replaced with:geometry = geometry.toNonIndexed()I'm not sure everything works with this new version but wanted to share the info.