Skip to content

Geom function unindexBufferGeometry broken with specific models #4

@timbaas

Description

@timbaas

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions