Use merged AABB to calculate grid cell size for PLBVH.

This commit is contained in:
Jackson Lee
2014-02-18 19:59:05 -08:00
parent b7b7356af8
commit 7f0e361fa0
4 changed files with 115 additions and 45 deletions

View File

@@ -56,14 +56,8 @@ public:
virtual void calculateOverlappingPairs(int maxPairs)
{
//Detect overall min/max
{
//Not implemented
}
//Reconstruct BVH
const b3Scalar CELL_SIZE(0.1);
m_plbvh.build(m_aabbsGpu, CELL_SIZE);
m_plbvh.build(m_aabbsGpu);
//
m_overlappingPairsGpu.resize(maxPairs);