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

Method copy

physx/source/scenequery/src/SqIncrementalAABBTree.cpp:1066–1076  ·  view source on GitHub ↗

build the tree from the prebuild AABB tree

Source from the content-addressed store, hash-verified

1064
1065// build the tree from the prebuild AABB tree
1066void IncrementalAABBTree::copy(const BVHStructure& bvhStructure, Ps::Array<IncrementalAABBTreeNode*>& mapping)
1067{
1068 if(bvhStructure.getNbBounds() == 0)
1069 return;
1070
1071 IncrementalAABBTreeNodePair* nodePair = mNodesPool.construct();
1072 mRoot = &nodePair->mNode0;
1073
1074 const BVHNode* nodes = bvhStructure.getNodes();
1075 copyNode(*mRoot, *nodes, nodes, NULL, bvhStructure.getIndices(), mapping);
1076}
1077

Callers 1

addCompoundMethod · 0.45

Calls 4

getNbBoundsMethod · 0.80
constructMethod · 0.45
getNodesMethod · 0.45
getIndicesMethod · 0.45

Tested by

no test coverage detected