Closed Zhenyu-Liu closed 6 years ago
Hi, I hacked a quick fix into my branch from this master: https://github.com/AlexVonB/RTree/tree/f/return-branch For an example see https://github.com/AlexVonB/RTree/blob/f/return-branch/Test.cpp#L45
a_searchResult
might be an old input variable, no idea.
@AlexVonB nice solution, Also I wonder if this Rtree implementation supports for the 4-dimension coordinate. I was trying to initialize it with 4 dimensions but I got the segment fault.
I found the problem is in here, but not sure how?
How do you initialize and fill your Tree? This is what it should look like:
RTree<int, int, 4, float> tree;
int min[4] = {0, 0, 0, 0};
int max[4] = {1, 1, 1, 1};
tree.Insert(min, max, 0);
Is there any way to get the coordinate when we have the match, instead of loop through the whole tree using the iterator?
Also, where can I set the a_searchResult array?