Skip to content

Commit

Permalink
link: TrivialPortalLink assertion for isOnSurface
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgessinger committed Aug 21, 2024
1 parent 2e0b356 commit c33d0d9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Core/src/Geometry/TrivialPortalLink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ const TrackingVolume* TrivialPortalLink::resolveVolume(
}

const TrackingVolume* TrivialPortalLink::resolveVolume(
const GeometryContext& /*gctx*/, const Vector3& /*position*/) const {
const GeometryContext& gctx, const Vector3& position) const {
static_cast<void>(gctx);
static_cast<void>(position);
assert(m_surface->isOnSurface(gctx, position) &&
"Trivial portal lookup point should be on surface");
return m_volume;
}

Expand Down

0 comments on commit c33d0d9

Please sign in to comment.