How to implement a Quadtree for spatial partitioning

寵の児 提交于 2020-01-17 06:54:53

问题


I'm having trouble with spatial partitioning for my class. The problem I'm having is implementing the Quadtree in C++ using DirectX. I get the concept behind it but the coding to implement it is what I'm having trouble with.

Right now I have the environment to test the tree. And the structure for the tree.

struct Node { vector3 element; Node* left,right; }; Node root;

来源:https://stackoverflow.com/questions/5994778/how-to-implement-a-quadtree-for-spatial-partitioning

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!