I need some help with this problem I'm having of how to do Neighbor find of multiple quadtrees.
I have a cube. Each side of the cube is made of N individually colored quads (as you can see from the image below). Each one of these individually colored quads has the ability to perform a quadtree (recursively sub-divide itself into 4 smaller parts). In addition, every quad has a location attribute that can tell you its local and global {x,y,z} position. Also, all the quads are stored in a 1D array.
Now let's say for example I select a random quad Q1, and that quad splits into 4 children:
Q1 → (Q1)(1), (Q1)(2), (Q1)(3), (Q1)(4)
And then I select (Q1)(1) child to split into 4.
(Q1)(1) → ((Q1)(1))(1), ((Q1)(1))(2), ((Q1)(1))(3), ((Q1)(1))(4),
And now I would like to find all ((Q1)(1))(2) neighboring quads
In general, I'm asking How do I perform neighbor finding on this data structure so that I can find any neighboring quad of a child or parent quad at any level?
