-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assertion failure in RTree::choosePartition #23
Comments
I reproduced the failure, and @appgurueu was able to identify it as caused by the tree parameters. I created the tree with a minimum child size of 3 and a maximum child size of 4. On the 5th insertion, the tree will split, and one partition will be underfilled. I will try to clean up the test case to be minimal and add it here later. |
TEST_CASE("regression test") {
typedef spatial::RTree<int, Box2<int>, 2, 4, 3> rtree_box_t;
rtree_box_t rtree;
Box2<int> box{{-3, 0}, {3, 17}};
rtree.insert(box);
rtree.insert(box);
rtree.insert(box);
rtree.insert(box);
rtree.insert(box);
}``` |
Thanks, will test that out. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If no one beats me to it, I will attempt to write a unit test that reproduces the issue.
The text was updated successfully, but these errors were encountered: