-
Notifications
You must be signed in to change notification settings - Fork 39
ArborX::nearest
Damien L-G edited this page Jan 22, 2021
·
2 revisions
template <typename Geometry>
KOKKOS_FUNCTION unspecified nearest(Geometry const& geometry, std::size_t k = 1) noexcept;
Generate a nearest predicate to perform a k-nearest neighbors search with ArborX::BVH<MemorySpace>::query()
.
Geometry
: The geometry type, e.g. ArborX::Point
, ArborX::Box
, or ArborX::Sphere
.
geometry
: The geometry object from which distance is calculated.
k
: The number of primitives to search for.
auto nearest_five_to_origin_pred = ArborX::nearest(ArborX::Point{0, 0, 0}, 5);