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

Method build

physx/source/scenequery/src/SqAABBTree.cpp:215–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215bool AABBTree::build(AABBTreeBuildParams& params)
216{
217 const PxU32 nbPrimitives = params.mNbPrimitives;
218 if(!nbPrimitives)
219 return false;
220
221 // Release previous tree
222 release();
223
224 BuildStats stats;
225 mNbIndices = nbPrimitives;
226
227 const bool buildStatus = buildAABBTree(params, mNodeAllocator, stats, mIndices);
228 PX_UNUSED(buildStatus);
229 PX_ASSERT(buildStatus);
230
231 buildEnd(params, stats);
232 return true;
233}
234
235void AABBTree::shiftOrigin(const PxVec3& shift)
236{

Callers 5

fullRebuildAABBTreeMethod · 0.45
updateBucketPrunerMethod · 0.45
fullRebuildAABBTreeMethod · 0.45
commitMethod · 0.45
buildMainAABBTreeMethod · 0.45

Calls 2

PX_UNUSEDFunction · 0.85
releaseFunction · 0.50

Tested by

no test coverage detected