MCPcopy Create free account
hub / github.com/assimp/assimp / UpdateMeshIndices

Function UpdateMeshIndices

code/PostProcessing/FindInstancesProcess.cpp:104–111  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------------ Update mesh indices in the node graph

Source from the content-addressed store, hash-verified

102// ------------------------------------------------------------------------------------------------
103// Update mesh indices in the node graph
104void UpdateMeshIndices(aiNode* node, unsigned int* lookup)
105{
106 for (unsigned int n = 0; n < node->mNumMeshes;++n)
107 node->mMeshes[n] = lookup[node->mMeshes[n]];
108
109 for (unsigned int n = 0; n < node->mNumChildren;++n)
110 UpdateMeshIndices(node->mChildren[n],lookup);
111}
112
113// ------------------------------------------------------------------------------------------------
114// Executes the post processing step on the given imported data.

Callers 1

ExecuteMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected