11 #ifndef smtk_mesh_core_PointLocator_h
12 #define smtk_mesh_core_PointLocator_h
14 #include "smtk/CoreExports.h"
17 #include "smtk/mesh/core/Interface.h"
18 #include "smtk/mesh/core/PointSet.h"
47 std::size_t numPoints,
48 const std::function<std::array<double, 3>(std::size_t)>& coordinates);
51 std::size_t numPoints,
52 const double*
const xyzs)
54 return std::array<double, 3>({ { xyzs[3 * i], xyzs[3 * i + 1], xyzs[3 * i + 2] } });
60 std::size_t numPoints,
61 const float*
const xyzs)
63 return std::array<double, 3>({ {
static_cast<double>(xyzs[3 * i]),
64 static_cast<double>(xyzs[3 * i + 1]),
65 static_cast<double>(xyzs[3 * i + 2]) } });
71 smtk::mesh::HandleRange range()
const;
88 void find(
double x,
double y,
double z,
double radius,
LocatorResults& results);