Ignore:
Timestamp:
11/23/06 12:25:16 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/HierarchyManager.cpp

    r1779 r1784  
    474474        { 
    475475                // 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; 
    478480                 
    479481                cout << "new decicion, vsp: " << vspPriority << ", osp: " << ospPriority << endl; 
     
    505507                        const int repaired = RepairQueue(dirtyVspList, viewSpaceQueue, true); 
    506508             
    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; 
    508511                } 
    509512                else 
     
    535538                        const int repaired = RepairQueue(dirtyOspList, objectSpaceQueue, true); 
    536539 
    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; 
    538542                } 
    539543        } 
     
    586590                // prepare vsp tree for traversal 
    587591        mViewSpaceSubdivisionType = mSavedViewSpaceSubdivisionType; 
    588                  
    589592                PrepareViewSpaceSubdivision(mTQueue, sampleRays, objects); 
    590593        } 
     
    596599                PrepareObjectSpaceSubdivision(mTQueue, sampleRays, objects); 
    597600        } 
    598  
     601         
    599602        // begin subdivision 
    600603        RunConstruction(mRepairQueue, sampleRays, objects, forcedViewSpace); 
     
    20472050         
    20482051        SubdivisionCandidate *firstVsp = mVspTree->PrepareConstruction(sampleRays, *viewSpaceRays); 
     2052        tQueue.Push(firstVsp); 
     2053 
    20492054        mBvHierarchy->PrepareConstruction(tQueue, sampleRays, objects); 
    20502055 
     
    20542059        firstVsp->SetPriority((float)-oldVspRoot->mTimeStamp); 
    20552060        firstBvh->SetPriority((float)-oldBvhRoot->GetTimeStamp()); 
    2056  
    2057         tQueue.Push(firstVsp); 
    20582061         
    20592062        ExportStats(stats, tQueue, objects); 
Note: See TracChangeset for help on using the changeset viewer.