Ignore:
Timestamp:
11/09/06 13:57:27 (18 years ago)
Author:
mattausch
Message:

removed bug from dirtycandidates

File:
1 edited

Legend:

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

    r1732 r1733  
    267267        splitQueue.Pop(); 
    268268 
     269        // split was not reevaluated before => do it now 
     270        if (splitCandidate->IsDirty()) 
     271                splitCandidate->EvalCandidate(); 
     272 
    269273        return splitCandidate; 
    270274} 
     
    471475        { 
    472476                // decide upon next split type 
    473                 if (viewSpaceQueue.Top()->IsDirty()) 
    474                         viewSpaceQueue.Top()->EvalCandidate(); 
    475  
    476                 if (objectSpaceQueue.Top()->IsDirty()) 
    477                         objectSpaceQueue.Top()->EvalCandidate(); 
    478  
    479477                const float vspPriority = viewSpaceQueue.Top() ? viewSpaceQueue.Top()->GetPriority() : -1e20f; 
    480478                const float ospPriority = objectSpaceQueue.Top() ? objectSpaceQueue.Top()->GetPriority() : -1e20f; 
     
    976974        while (!splitQueue.Empty()) 
    977975        { 
    978                 // reevaluate current candidate 
    979                 if (splitQueue.Top()->IsDirty()) 
    980                         splitQueue.Top()->EvalCandidate(); 
    981                  
    982976                const float priority = splitQueue.Top()->GetPriority(); 
    983977                const float threshold = oldCandidate ? oldCandidate->GetPriority() : 1e20f; 
Note: See TracChangeset for help on using the changeset viewer.