brandonpelfrey / Fast-BVH

A Simple, Optimized Bounding Volume Hierarchy for Ray/Object Intersection Testing
MIT License
509 stars 72 forks source link

fix BBox::maxDimension #7

Closed DavidJourdan closed 5 years ago

DavidJourdan commented 7 years ago

Hi ! I fixed your method for finding the longest axis in the AABB which returns the wrong one if you have extent.z < extent.x and extent.z > extent.y