- Timestamp:
- 06/15/08 00:27:36 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/CHC_revisited/FrustumCullingTraverser.cpp
r2760 r2761 16 16 mDistanceQueue.push(mBvh->GetRoot()); 17 17 18 int traversed = 0; 18 19 while (!mDistanceQueue.empty()) 19 20 { … … 27 28 //bool intersects; 28 29 29 if ( 1)//mBvh->InsideViewFrustum(node, intersects))30 if (mBvh->IsWithinViewFrustum(node)) 30 31 { 31 32 // update node's visited flag => needed for rendering … … 33 34 //node->SetLastVisited(mFrameID); 34 35 //node->SetVisible(true); 35 36 ++ traversed; 36 37 TraverseNode(node); 37 38 } … … 41 42 } 42 43 } 44 45 std::cout << "traversed: " << traversed << std::endl; 43 46 } 44 47
Note: See TracChangeset
for help on using the changeset viewer.