diff --git a/src/util/k_d_tree.h b/src/util/k_d_tree.h index 13f7bebe7..4e7abf258 100644 --- a/src/util/k_d_tree.h +++ b/src/util/k_d_tree.h @@ -16,7 +16,7 @@ using Idx = uint16_t; // TODO profile and tweak knobs -// TODO cleanup +// TODO cleanup (split up in header and impl among other things) template class Points { @@ -63,8 +63,6 @@ class Points { template class SortedIndices { -private: - // SortedIndices(Points &&indices) : indices(indices) {} public: //! empty SortedIndices() : indices() {} @@ -234,7 +232,6 @@ class KdTree { } //! Build a tree - // FIXME something must be wrong here, otherwise deleting stuff would work KdTree(Idx n, Id const *ids, std::array pts) : items(n, pts) , ids(std::make_unique(n)) @@ -259,6 +256,8 @@ class KdTree { std::copy(b.deleted.begin(), b.deleted.end(), deleted.begin() + a.items.size()); } + // TODO ray proximity query + template void rangeQuery(const Point &min, const Point &max, const F &cb) const {