25-09-2020, 04:07 PM
(25-09-2020, 03:28 PM)MattS Wrote: [/url]The axis chosen to split on is X in this case because it spans the largest dimensions, but all the centres of the triangles on X are identical. It might need to consider the spread of the centres instead, I'm not sure.
There's several "pathological" cases for BIHs that result in poor partitions, this being one of them. Using aabb centers to calculate the split axis also leads to some (albeit different) worst cases, though, so there's no clear winner in all situations.