Skip to content

Commit

Permalink
Allow user-provided returnCentroid
Browse files Browse the repository at this point in the history
  • Loading branch information
aprokop committed May 6, 2024
1 parent b05b5f7 commit 31ef0aa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/details/ArborX_SpaceFillingCurves.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ struct Morton32
KOKKOS_FUNCTION auto operator()(Box const &scene_bounding_box,
Geometry const &geometry) const
{
auto p = Details::returnCentroid(geometry);
using Details::returnCentroid;
auto p = returnCentroid(geometry);
Details::translateAndScale(p, p, scene_bounding_box);
return Details::morton32(p);
}
Expand All @@ -65,7 +66,8 @@ struct Morton64
KOKKOS_FUNCTION auto operator()(Box const &scene_bounding_box,
Geometry const &geometry) const
{
auto p = Details::returnCentroid(geometry);
using Details::returnCentroid;
auto p = returnCentroid(geometry);
Details::translateAndScale(p, p, scene_bounding_box);
return Details::morton64(p);
}
Expand Down

0 comments on commit 31ef0aa

Please sign in to comment.