What should the behaviour of the tree splitting be if the split that we end up doing keeps moving the objects to one sider over the other, how should we deal with this?
That is we find the biggest axis, then move the boxes to the left if < and right otherwise. But this can cause an infinite loop if all the objects lie on same side. Basically the image below:
What should the behaviour of the tree splitting be if the split that we end up doing keeps moving the objects to one sider over the other, how should we deal with this?
That is we find the biggest axis, then move the boxes to the left if
<
and right otherwise. But this can cause an infinite loop if all the objects lie on same side. Basically the image below: