build the tree from the prebuild AABB tree
| 1064 | |
| 1065 | // build the tree from the prebuild AABB tree |
| 1066 | void 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 |
no test coverage detected