File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -1172,14 +1172,10 @@ static unsafe void BinnedBuildNode<TLeaves, TThreading>(
11721172 bestCentroidBoundingBoxB = accumulatedCentroidBoundingBoxB ;
11731173 int accumulatedLeafCountB = binLeafCounts [ lastBinIndex ] ;
11741174 int bestLeafCountB = 0 ;
1175- float minCandidate = float . MaxValue ;
1176- float maxCandidate = float . MinValue ;
11771175 for ( int splitIndexCandidate = lastBinIndex ; splitIndexCandidate >= 1 ; -- splitIndexCandidate )
11781176 {
11791177 var previousIndex = splitIndexCandidate - 1 ;
11801178 var sahCandidate = ComputeBoundsMetric( binBoundingBoxesScan[ previousIndex] ) * ( totalLeafCount - accumulatedLeafCountB) + ComputeBoundsMetric( accumulatedBoundingBoxB) * accumulatedLeafCountB;
1181- minCandidate = float . Min( minCandidate, sahCandidate ) ;
1182- maxCandidate = float . Max ( maxCandidate , sahCandidate ) ;
11831179 if ( sahCandidate < bestSAH)
11841180 {
11851181 bestSAH = sahCandidate;
@@ -1195,11 +1191,7 @@ static unsafe void BinnedBuildNode<TLeaves, TThreading>(
11951191 accumulatedCentroidBoundingBoxB . Min = Vector4 . Min ( centroidBoundsForBin . Min , accumulatedCentroidBoundingBoxB . Min ) ;
11961192 accumulatedCentroidBoundingBoxB . Max = Vector4 . Max ( centroidBoundsForBin . Max , accumulatedCentroidBoundingBoxB . Max ) ;
11971193 accumulatedLeafCountB += binLeafCounts [ previousIndex ] ;
1198- }
1199- //if (minCandidate == maxCandidate)
1200- //{
1201- // Console.WriteLine("asdfh");
1202- //}
1194+ }
12031195 if ( bestLeafCountB == 0 || bestLeafCountB == totalLeafCount || bestSAH == float . MaxValue || float . IsNaN ( bestSAH ) || float . IsInfinity( bestSAH) )
12041196 {
12051197 //Some form of major problem detected! Fall back to a degenerate split.
You can’t perform that action at this time.
0 commit comments