Closed joy-yjl closed 4 years ago
Do your point clouds have many exact same points, for example, many (0, 0, 0)?
I guess it's because those points always go one side, so splitting won't stop. You can refer to this commit to test. Now it has same chance to go both side.
I guess it's because those points always go one side, so splitting won't stop. You can refer to this commit to test. Now it has same chance to go both side.
thank you for your reply. this new commit fixed this bug. Now it works.
When I use the code to building kdtree, it enters an endless loop, and there are always new nodes that can be split.