In a bsp, octree or quadtree all trees have an amount of children. But you can’t change the amount. Therefor if I want a tree that looks something like this:
I’ve tried to do this using an integer value
in each node to process each child but it becomes incredibly slow. Isn’t it possible to in each node have a pointer to a function to process the current kind of node?
Or how to do?