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

Function CountNodes

tools/assimp_cmd/Info.cpp:82–88  ·  view source on GitHub ↗

-----------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

80
81// -----------------------------------------------------------------------------------
82unsigned int CountNodes(const aiNode *root) {
83 unsigned int i = 0;
84 for (unsigned int a = 0; a < root->mNumChildren; ++a) {
85 i += CountNodes(root->mChildren[a]);
86 }
87 return 1 + i;
88}
89
90// -----------------------------------------------------------------------------------
91unsigned int GetMaxDepth(const aiNode *root) {

Callers 3

Assimp_InfoFunction · 0.85
CountNodesMethod · 0.85
ExecuteMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected