1
Vote

Bug, OptimizedBvh.cs, SortAndCalculateSplittingIndex

description

if (splitAxis == 0)
                centerSplit = means.X;
            else if (splitAxis == 1)
                centerSplit = means.Y;
            else if (splitAxis == 2)
                centerSplit = means.Z;
            else
                throw new ArgumentException();
 
means.X -> center.X etc, now centerSplit == splitValue and node swap never occurs.

comments