///brute force method to calculate aabb public void CalculateAabbBruteForce(out IndexedVector3 aabbMin, out IndexedVector3 aabbMax) { //first calculate the total aabb for all triangles AabbCalculationCallback aabbCallback = new AabbCalculationCallback(); aabbMin = MathUtil.MIN_VECTOR; aabbMax = MathUtil.MAX_VECTOR; InternalProcessAllTriangles(aabbCallback, ref aabbMin, ref aabbMax); aabbMin = aabbCallback.m_aabbMin; aabbMax = aabbCallback.m_aabbMax; }
///brute force method to calculate aabb public void CalculateAabbBruteForce(out IndexedVector3 aabbMin, out IndexedVector3 aabbMax) { //first calculate the total aabb for all triangles AabbCalculationCallback aabbCallback = new AabbCalculationCallback(); aabbMin = MathUtil.MIN_VECTOR; aabbMax = MathUtil.MAX_VECTOR; InternalProcessAllTriangles(aabbCallback,ref aabbMin,ref aabbMax); aabbMin = aabbCallback.m_aabbMin; aabbMax = aabbCallback.m_aabbMax; }