X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FOctree.hh;h=13ece5bb4ecd9ac0fe75f7d3b838e9bacd0bc123;hp=ca464a575efa16ad44ade5269005ab9e6c3f4ae4;hb=2d77fb5fb3480f522658f30af6addd5146530517;hpb=64e3c3202d2c1956759fb4da36ca329816c9369a diff --git a/src/Moof/Octree.hh b/src/Moof/Octree.hh index ca464a5..13ece5b 100644 --- a/src/Moof/Octree.hh +++ b/src/Moof/Octree.hh @@ -52,7 +52,7 @@ struct OctreeInsertable { virtual ~OctreeInsertable() {} - virtual int getOctant(const Aabb& aabb) const = 0; + virtual int getOctant(const Aabb<3>& aabb) const = 0; }; @@ -65,7 +65,7 @@ class Octree : public Entity { std::list objects; - Node(const Aabb& aabb) + Node(const Aabb<3>& aabb) { mAabb = aabb; mSphere.point = mAabb.getCenter(); @@ -114,8 +114,8 @@ private: ASSERT(node.valid() && "invalid node passed"); ASSERT(entity && "null entity passed"); - Aabb entityAabb = entity->getAabb(); - Aabb nodeAabb = node->getAabb(); + Aabb<3> entityAabb = entity->getAabb(); + Aabb<3> nodeAabb = node->getAabb(); if (!(entityAabb.max[0] < nodeAabb.max[0] && entityAabb.min[0] > nodeAabb.min[0] && @@ -162,7 +162,7 @@ private: { ASSERT(node.valid() && "invalid node passed"); - Aabb octant; + Aabb<3> octant; for (int i = mTree.children(node); i <= index; ++i) {