22 #define HOST_DEVICE __host__ __device__
29 return x * 73856096 ^ y * 193649663 ^ z * 83492791;
41 template <
class TVecf>
43 const TVecf &pos,
const typename TVecf::Scalar_t &inv_voxel_size) {
44 TVecf ref_coord = pos * inv_voxel_size;
47 voxel_index =
floor(ref_coord).template cast<int>();
utility::MiniVec< int, 3 > ComputeVoxelIndex(const TVecf &pos, const typename TVecf::Scalar_t &inv_voxel_size)
size_t SpatialHash(int x, int y, int z)
Spatial hashing function for integer coordinates.
MiniVec< float, N > floor(const MiniVec< float, N > &a)
Generic file read and write utility for python interface.
Base struct for NanoFlann index holder.
virtual ~NanoFlannIndexHolderBase()