- Timestamp:
- 08/10/06 17:08:57 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreKdTreeHierarchyInterface.cpp
r1187 r1195 42 42 else 43 43 { 44 KdTree::Branch * kdbranch = KDBRANCHPTR_CAST(node); 45 if (kdbranch->mLeft) 46 mDistanceQueue->push(kdbranch->mLeft); 47 if (kdbranch->mRight) 48 mDistanceQueue->push(kdbranch->mRight); 44 //KdTree::Branch * kdbranch = KDBRANCHPTR_CAST(node); 45 //if (kdbranch->mLeft) 46 // mDistanceQueue->push(kdbranch->mLeft); 47 //if (kdbranch->mRight) 48 // mDistanceQueue->push(kdbranch->mRight); 49 if (kdnode->getLeftChild()) 50 mDistanceQueue->push(kdnode->getLeftChild()); 51 if (kdnode->getRightChild()) 52 mDistanceQueue->push(kdnode->getRightChild()); 49 53 } 50 54 } … … 133 137 } 134 138 135 // TODO: maybe boxlist?136 139 dynamic_cast<KdTreeSceneManager *>(mSceneManager)->getRenderQueue()->addRenderable(box); 137 140 } … … 141 144 bool includeChildren) 142 145 { 143 KdTree::Node * kdnode = KDNODEPTR_CAST(node); 144 if (kdnode->isLeaf()) 145 { 146 KdTree::Leaf * kdleaf = KDLEAFPTR_CAST(node); 147 KdRenderableList::iterator it = kdleaf->mKdRenderables.begin(); 148 KdRenderableList::iterator end = kdleaf->mKdRenderables.end(); 149 while (it != end) 150 { 151 (*it)->getGeometryList(geometryList); 152 it++; 153 } 154 } 146 KDNODEPTR_CAST(node)->getGeometryList(geometryList); 155 147 } 156 148
Note: See TracChangeset
for help on using the changeset viewer.