The inspect method returns the wrong number of Mesh #1054
Answered
by
donmccurdy
neciszhang
asked this question in
Q&A
-
|
Hi Donmccurdy, |
Beta Was this translation helpful? Give feedback.
Answered by
donmccurdy
Aug 7, 2023
Replies: 1 comment 2 replies
-
|
Hi @neciszhang! This method returns the correct number of mesh “resources” in the glTF file. I think the difference you're seeing is that several of those meshes are used within the scene many times. If you include the 'instances' property on each mesh, you'll get the total you're expecting: Screenshot from https://gltf.report/. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
neciszhang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Hi @neciszhang! This method returns the correct number of mesh “resources” in the glTF file. I think the difference you're seeing is that several of those meshes are used within the scene many times. If you include the 'instances' property on each mesh, you'll get the total you're expecting:
Screenshot from https://gltf.report/.