Changeset 1784 for GTP/trunk/Lib/Vis/Preprocessing/src/HierarchyManager.cpp
- Timestamp:
- 11/23/06 12:25:16 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/HierarchyManager.cpp
r1779 r1784 474 474 { 475 475 // decide upon next split type 476 const float vspPriority = viewSpaceQueue.Top() ? viewSpaceQueue.Top()->GetPriority() : -1e20f; 477 const float ospPriority = objectSpaceQueue.Top() ? objectSpaceQueue.Top()->GetPriority() : -1e20f; 476 const float vspPriority = 477 viewSpaceQueue.Top() ? viewSpaceQueue.Top()->GetPriority() : -1e20f; 478 const float ospPriority = 479 objectSpaceQueue.Top() ? objectSpaceQueue.Top()->GetPriority() : -1e20f; 478 480 479 481 cout << "new decicion, vsp: " << vspPriority << ", osp: " << ospPriority << endl; … … 505 507 const int repaired = RepairQueue(dirtyVspList, viewSpaceQueue, true); 506 508 507 cout << "\nrepaired " << repaired << " candidates from " << (int)dirtyVspList.size() << " dirtied candidates" << endl; 509 cout << "\nrepaired " << repaired << " candidates from " 510 << (int)dirtyVspList.size() << " dirtied candidates" << endl; 508 511 } 509 512 else … … 535 538 const int repaired = RepairQueue(dirtyOspList, objectSpaceQueue, true); 536 539 537 cout << "\nrepaired " << repaired << " candidates from " << (int)dirtyOspList.size() << " dirtied candidates" << endl; 540 cout << "\nrepaired " << repaired << " candidates from " 541 << (int)dirtyOspList.size() << " dirtied candidates" << endl; 538 542 } 539 543 } … … 586 590 // prepare vsp tree for traversal 587 591 mViewSpaceSubdivisionType = mSavedViewSpaceSubdivisionType; 588 589 592 PrepareViewSpaceSubdivision(mTQueue, sampleRays, objects); 590 593 } … … 596 599 PrepareObjectSpaceSubdivision(mTQueue, sampleRays, objects); 597 600 } 598 601 599 602 // begin subdivision 600 603 RunConstruction(mRepairQueue, sampleRays, objects, forcedViewSpace); … … 2047 2050 2048 2051 SubdivisionCandidate *firstVsp = mVspTree->PrepareConstruction(sampleRays, *viewSpaceRays); 2052 tQueue.Push(firstVsp); 2053 2049 2054 mBvHierarchy->PrepareConstruction(tQueue, sampleRays, objects); 2050 2055 … … 2054 2059 firstVsp->SetPriority((float)-oldVspRoot->mTimeStamp); 2055 2060 firstBvh->SetPriority((float)-oldBvhRoot->GetTimeStamp()); 2056 2057 tQueue.Push(firstVsp);2058 2061 2059 2062 ExportStats(stats, tQueue, objects);
Note: See TracChangeset
for help on using the changeset viewer.