Skip to content

Commit 33d25a6

Browse files
committed
Minor fixups on RayIntersected*
1 parent e2ff2f8 commit 33d25a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

octree.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5796,7 +5796,7 @@ namespace OrthoTree
57965796
TContainer const& boxes,
57975797
IGM::BoxRayHitTester const& boxRayHitTester,
57985798
TGeometry maxExaminationDistance,
5799-
const std::optional<std::function<std::optional<TGeometry>(TEntityID)>>& entityRayHitTester,
5799+
std::optional<std::function<std::optional<TGeometry>(TEntityID)>> const& entityRayHitTester,
58005800
auto& foundEntities) const noexcept
58015801
{
58025802
auto const& node = this->GetNode(parentKey);
@@ -5851,7 +5851,7 @@ namespace OrthoTree
58515851
TContainer const& boxes,
58525852
IGM::Geometry tolerance = {},
58535853
IGM::Geometry toleranceIncrement = {},
5854-
TGeometry maxExaminationDistance = {},
5854+
TGeometry maxExaminationDistance = std::numeric_limits<TGeometry>::max(),
58555855
std::optional<std::function<std::optional<TGeometry>(TEntityID)>> entityRayHitTester = std::nullopt) const noexcept
58565856
{
58575857
const auto boxRayHitTester = IGM::BoxRayHitTester::Make(rayBasePoint, rayHeading, tolerance, toleranceIncrement);
@@ -5911,7 +5911,7 @@ namespace OrthoTree
59115911

59125912
// Get all box which is intersected by the ray in order
59135913
inline std::vector<TEntityID> RayIntersectedAll(
5914-
TRay const& ray, TContainer const& boxes, TGeometry tolerance = {}, TGeometry maxExaminationDistance = {}) const noexcept
5914+
TRay const& ray, TContainer const& boxes, TGeometry tolerance = {}, TGeometry maxExaminationDistance = std::numeric_limits<TGeometry>::max()) const noexcept
59155915
{
59165916
return RayIntersectedAll(AD::GetRayOrigin(ray), AD::GetRayDirection(ray), boxes, tolerance, maxExaminationDistance);
59175917
}

0 commit comments

Comments
 (0)