mikedh / trimesh

Python library for loading and using triangular meshes.
https://trimesh.org
MIT License
3.01k stars 582 forks source link

GLB loader - missing a few geometries or nodes #919

Open MattSmillie opened 4 years ago

MattSmillie commented 4 years ago

Hi there,

I have found an issue with a glb file. Some of the surfaces seems to be missing. I have tried dumping the scene, converting to triangles but in each case I seem to be missing a few faces. Perhaps there's something about these surfaces which isn't supported? I'm using version 3.7.7. I wonder if it's somehow related to the materials?

trimesh Visualised trimesh

glb Original model rendered in different tool

Here is the glb file - feel free to use it in tests.

building.zip

mikedh commented 4 years ago

Thanks for the report! Yeah can reproduce, when I dump the scene trimesh reports 52114 faces, but threejs gets 52892. Not sure if there's something different about one of the primitives maybe?