Changeset 1680 for GTP/trunk/Lib/Vis/Preprocessing/src/BvHierarchy.cpp
- Timestamp:
- 10/26/06 11:09:58 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/BvHierarchy.cpp
r1679 r1680 332 332 333 333 334 void BvHierarchy::UpdateNode(const BvhSubdivisionCandidate &sc) 335 { 336 BvhInterior *node = NULL;//sc->mParentData.mNode; 337 //AssociateObjectsWithLeaf(node->GetBack()); 338 //AssociateObjectsWithLeaf(node->GetFront()); 339 340 node->mRenderCostDecr += sc.GetRenderCostDecrease(); 341 node->mPvsEntriesIncr += sc.GetPvsEntriesIncr(); 342 343 } 344 345 334 346 BvhInterior *BvHierarchy::SubdivideNode(const BvhSubdivisionCandidate &sc, 335 347 BvhTraversalData &frontData, … … 418 430 // set the time stamp so the order of traversal can be reconstructed 419 431 node->mTimeStamp = mHierarchyManager->mTimeStamp ++; 420 cout << "here4 " << node->mTimeStamp << endl;432 //cout << "here4 " << node->mTimeStamp << endl; 421 433 node->mRenderCostDecr = sc.GetRenderCostDecrease(); 422 434 node->mPvsEntriesIncr = sc.GetPvsEntriesIncr(); … … 1281 1293 if (useVisibilityBasedHeuristics) 1282 1294 { 1283 //cout << "v";1295 cout << "v"; 1284 1296 /////////// 1285 1297 //-- heuristics using objects weighted by view cells volume … … 1288 1300 } 1289 1301 else 1290 { //cout << "e";1302 { cout << "e"; 1291 1303 ////////////////// 1292 1304 //-- view cells not constructed yet => use surface area heuristic … … 1668 1680 { 1669 1681 // rather use the simple version 1670 if (!object) return NULL; 1682 if (!object) 1683 return NULL; 1684 1671 1685 return object->mBvhLeaf; 1672 1686
Note: See TracChangeset
for help on using the changeset viewer.