MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / _createParentArray

Function _createParentArray

physx/source/scenequery/src/SqAABBTree.cpp:438–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

436}
437
438static void _createParentArray(PxU32 totalNbNodes, PxU32* parentIndices, const AABBTreeRuntimeNode* parentNode, const AABBTreeRuntimeNode* currentNode, const AABBTreeRuntimeNode* root)
439{
440 const PxU32 parentIndex = PxU32(parentNode - root);
441 const PxU32 currentIndex = PxU32(currentNode - root);
442 PX_ASSERT(parentIndex<totalNbNodes);
443 PX_ASSERT(currentIndex<totalNbNodes);
444 PX_UNUSED(totalNbNodes);
445 parentIndices[currentIndex] = parentIndex;
446
447 if(!currentNode->isLeaf())
448 {
449 _createParentArray(totalNbNodes, parentIndices, currentNode, currentNode->getPos(root), root);
450 _createParentArray(totalNbNodes, parentIndices, currentNode, currentNode->getNeg(root), root);
451 }
452}
453
454void AABBTree::markNodeForRefit(TreeNodeIndex nodeIndex)
455{

Callers 2

markNodeForRefitMethod · 0.85
mergeTreeMethod · 0.85

Calls 4

PX_UNUSEDFunction · 0.85
isLeafMethod · 0.45
getPosMethod · 0.45
getNegMethod · 0.45

Tested by

no test coverage detected