mirror of
https://github.com/minetest/minetest.git
synced 2024-07-04 15:05:27 +02:00
stuff
This commit is contained in:
parent
f9fc8cf1b2
commit
fcfabbe1e6
@ -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 {
|
||||
@ -63,8 +63,6 @@ class Points {
|
||||
|
||||
template<uint8_t Dim>
|
||||
class SortedIndices {
|
||||
private:
|
||||
// SortedIndices(Points<Dim, Idx> &&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<Component const *, Dim> pts)
|
||||
: items(n, pts)
|
||||
, ids(std::make_unique<Id[]>(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<typename F>
|
||||
void rangeQuery(const Point &min, const Point &max,
|
||||
const F &cb) const {
|
||||
|
Loading…
Reference in New Issue
Block a user