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

Method FindNode

code/AssetLib/Collada/ColladaLoader.cpp:1763–1775  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------------ Finds a node in the collada scene by the given name

Source from the content-addressed store, hash-verified

1761// ------------------------------------------------------------------------------------------------
1762// Finds a node in the collada scene by the given name
1763const Node *ColladaLoader::FindNode(const Node *pNode, const std::string &pName) const {
1764 if (pNode->mName == pName || pNode->mID == pName)
1765 return pNode;
1766
1767 for (auto a : pNode->mChildren) {
1768 const Collada::Node *node = FindNode(a, pName);
1769 if (node) {
1770 return node;
1771 }
1772 }
1773
1774 return nullptr;
1775}
1776
1777// ------------------------------------------------------------------------------------------------
1778// Finds a node in the collada scene by the given SID

Callers 3

WriteObjectsMethod · 0.45
ReadMultipartFileMethod · 0.45

Calls 1

FindNodeFunction · 0.50

Tested by

no test coverage detected