Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Larry Gritz <lg@larrygritz.com>
  • Loading branch information
lgritz committed Sep 19, 2024
1 parent 8f4e4bc commit db27db0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/testrender/bvh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,13 @@ build_bvh(OIIO::cspan<Vec3> verts, OIIO::cspan<TriangleIndices> triangles,
* binFactor[bestAxis]);
if (!(binID >= 0 && binID < NumBins)) {
print("binID {} NumBins {} i={}\n", binID, NumBins, i);
print("current.left {} right {}\n", current.left,
current.right);
print(
"center {}, current.centroid.min[bestAxis={}] = {}, sub = {}, binFactor[bestAxis] {}\n",
center, bestAxis, current.centroid.min[bestAxis],
(center - current.centroid.min[bestAxis]),
binFactor[bestAxis]);
}
OSL_ASSERT(binID >= 0 && binID < NumBins);
if (binID <= bestBin) {
Expand Down

0 comments on commit db27db0

Please sign in to comment.