You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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