Fixed some problems with the kd-tree construction.

This commit is contained in:
2017-02-23 16:23:10 -04:00
parent a1feba31ea
commit d5bd3174e1
4 changed files with 104 additions and 24 deletions

View File

@@ -154,6 +154,8 @@ public:
void printTree();
std::vector<Photon> findInRange (Vec3 min, Vec3 max) const;
size_t getNumPhotons();
private:
treeNode* root;
std::vector<Photon> Photons;