Skip to content

Commit

Permalink
stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
appgurueu committed May 9, 2024
1 parent dba758d commit 84bcdd9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/util/k_d_tree.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<uint8_t Dim, typename Component>
class Points {
Expand Down Expand Up @@ -63,8 +63,6 @@ class Points {

template<uint8_t Dim>
class SortedIndices {
private:
// SortedIndices(Points<Dim, Idx> &&indices) : indices(indices) {}
public:
//! empty
SortedIndices() : indices() {}
Expand Down Expand Up @@ -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<Component const *, Dim> pts)
: items(n, pts)
, ids(std::make_unique<Id[]>(n))
Expand All @@ -259,6 +256,8 @@ class KdTree {
std::copy(b.deleted.begin(), b.deleted.end(), deleted.begin() + a.items.size());
}

// TODO ray proximity query

template<typename F>
void rangeQuery(const Point &min, const Point &max,
const F &cb) const {
Expand Down

0 comments on commit 84bcdd9

Please sign in to comment.