diff --git a/src/pe/ccd/HashGrids.cpp b/src/pe/ccd/HashGrids.cpp index f2bdc9c83b03cb5c65daf68e062b1e02098883f4..8b7b001c7887d601ae6bab15cd00595bfc4a3cce 100644 --- a/src/pe/ccd/HashGrids.cpp +++ b/src/pe/ccd/HashGrids.cpp @@ -1179,6 +1179,8 @@ bool HashGrids::powerOfTwo( size_t number ) } //************************************************************************************************* + +uint64_t HashGrids::intersectionTestCount = 0; //ToDo remove again //================================================================================================= // diff --git a/src/pe/ccd/HashGrids.h b/src/pe/ccd/HashGrids.h index c6146810b9f60f719f5407430ecf50ee9d16eb50..f5697eac1f294f1922ddbd6763ae68968f468547 100644 --- a/src/pe/ccd/HashGrids.h +++ b/src/pe/ccd/HashGrids.h @@ -99,7 +99,9 @@ public: static const size_t gridActivationThreshold; static const real_t hierarchyFactor; //********************************************************************************************** - + + static uint64_t intersectionTestCount; // ToDo remove again + private: //**Type definitions**************************************************************************** //! Vector for storing (handles to) rigid bodies. @@ -581,6 +583,7 @@ BodyID HashGrids::HashGrid::getBodyIntersectionForBlockCell(const Vector3<int32_ continue; } + HashGrids::intersectionTestCount++; bool intersects = SingleCast<BodyTuple, raytracing::IntersectsFunctor, bool>::execute(cellBody, intersectsFunc); if (intersects && t_local < t_closest) { body = cellBody;