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

Function getSplittingValue

physx/source/geomutils/src/GuAABBTreeBuild.cpp:103–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103static PX_FORCE_INLINE float getSplittingValue(const PxBounds3& global_box, PxU32 axis)
104{
105 // Default split value = middle of the axis (using only the box)
106 return global_box.getCenter(axis);
107}
108
109static PxU32 split(const PxBounds3& box, PxU32 nb, PxU32* const PX_RESTRICT prims, PxU32 axis, const AABBTreeBuildParams& params)
110{

Callers 1

splitFunction · 0.85

Calls 1

getCenterMethod · 0.45

Tested by

no test coverage detected