Open dpsanders opened 8 years ago
Yes, to me it looks like you're implicitly creating a kdtree during your splitting process. Whether that's actually useful is something I don't know - ray tracing traversal is a somewhat different use case :-)
The splitting process actually creates a binary tree, since each interval is bisected only once (currently the side of maximum length is split).
In progress in the paving_as_tree
branch.
https://en.wikipedia.org/wiki/K-d_tree
Ray tracing uses this and has a way to find the neighbouring box. (Thanks to @c42f)