Skip to content

Commit

Permalink
feat(geo): Add Gen3 hierarchy search to lowestTrackingVolume
Browse files Browse the repository at this point in the history
This does not affect the existing Gen1 hierarchy search, and only kicks
in when the Gen1 content is exhausted or not present at all.
  • Loading branch information
paulgessinger committed Nov 6, 2024
1 parent 8c1f155 commit 5e17512
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Core/src/Geometry/TrackingVolume.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,13 @@ const TrackingVolume* TrackingVolume::lowestTrackingVolume(
}
}

// @TODO: Abstract this into an accelerateable structure
for (const auto& volume : volumes()) {
if (volume.inside(position, tol)) {
return volume.lowestTrackingVolume(gctx, position, tol);
}
}

// there is no lower sub structure
return this;
}
Expand Down

0 comments on commit 5e17512

Please sign in to comment.