File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -719,14 +719,12 @@ float RayTracingEnvironment::CalculateCostsOfSplit(
719
719
split_value=min_coord;
720
720
721
721
// now, perform surface area/cost check to determine whether this split was worth it
722
- Vector LeftMins=MinBound;
723
722
Vector LeftMaxes=MaxBound;
724
723
Vector RightMins=MinBound;
725
- Vector RightMaxes=MaxBound;
726
724
LeftMaxes[split_plane]=split_value;
727
725
RightMins[split_plane]=split_value;
728
- float SA_L=BoxSurfaceArea (LeftMins ,LeftMaxes);
729
- float SA_R=BoxSurfaceArea (RightMins,RightMaxes );
726
+ float SA_L=BoxSurfaceArea (MinBound ,LeftMaxes);
727
+ float SA_R=BoxSurfaceArea (RightMins,MaxBound );
730
728
float ISA=1 .0f /BoxSurfaceArea (MinBound,MaxBound);
731
729
float cost_of_split=COST_OF_TRAVERSAL+COST_OF_INTERSECTION*(nboth+
732
730
(SA_L*ISA*(nleft))+(SA_R*ISA*(nright)));
You can’t perform that action at this time.
0 commit comments