Are aiMesh objects referenced several times in a scene? #5565
Unanswered
AdmiralPellaeon
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have a question regarding the meshes in an aiScene object.
Can the aiMesh objects used more than once in the scene graph?
Background of my question: I want to load files for a collision check. I need the geometry of a file as one collision object. Therefore I add all the vertices and triangles within one file into one object. I'd like to reserve the needed arrays in the correct size. My idea was to iterate over the meshes and sum up the vertices and triangle counts. But this only works, if a mesh is used only once in the scene graph.
Best regards
Beta Was this translation helpful? Give feedback.
All reactions