Ignore:
Timestamp:
11/09/06 19:05:09 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r1733 r1736  
    151151        Environment::GetSingleton()->GetIntValue( 
    152152                "Hierarchy.Construction.maxRepairs", mMaxRepairs); 
     153 
    153154        // compare to bytes 
    154155        mTermMaxMemory *= (1024.0f * 1024.0f); 
     
    504505                        /// Repair split queue, i.e., affected view space candidates 
    505506                        cout << "repairing queue ... " << endl; 
    506                         RepairQueue(dirtyVspList, viewSpaceQueue, true); 
     507                        const int repaired = RepairQueue(dirtyVspList, viewSpaceQueue, true); 
    507508             
    508                         cout << "\nrepaired " << (int)dirtyVspList.size() << " candidates" << endl; 
     509                        cout << "\nrepaired " << repaired << " candidates from " << (int)dirtyVspList.size() << " dirtied candidates" << endl; 
    509510                } 
    510511                else 
     
    534535                        /// Repair split queue 
    535536                        cout << "repairing queue ... " << endl; 
    536                         RepairQueue(dirtyOspList, objectSpaceQueue, true); 
    537  
    538                         cout << "repaired " << (int)dirtyOspList.size() << " candidates" << endl; 
     537                        const int repaired = RepairQueue(dirtyOspList, objectSpaceQueue, true); 
     538 
     539                        cout << "\nrepaired " << repaired << " candidates from " << (int)dirtyOspList.size() << " dirtied candidates" << endl; 
    539540                } 
    540541        } 
     
    13101311 
    13111312 
    1312 void HierarchyManager::RepairQueue(const SubdivisionCandidateContainer &dirtyList,  
    1313                                                                    SplitQueue &splitQueue, 
    1314                                                                    const bool recomputeSplitPlaneOnRepair) 
     1313int HierarchyManager::RepairQueue(const SubdivisionCandidateContainer &dirtyList, 
     1314                                                                  SplitQueue &splitQueue, 
     1315                                                                  const bool recomputeSplitPlaneOnRepair) 
    13151316{ 
    13161317        // for each update of the view space partition: 
     
    13301331        // split candidate 
    13311332 
     1333        int repaired = 0; 
     1334 
    13321335        // collect list of "dirty" candidates 
    13331336        const long startTime = GetTime(); 
     
    13561359                 // reinsert 
    13571360                splitQueue.Push(sc); 
    1358  
     1361                 
     1362                ++ repaired; 
    13591363                cout << "."; 
    13601364 
     
    13711375        mHierarchyStats.mRepairTime += timeDiff; 
    13721376 
    1373         if (0) cout << "repaired in " << timeDiff * 1e-3f << " secs" << endl; 
     1377        return repaired; 
    13741378} 
    13751379 
Note: See TracChangeset for help on using the changeset viewer.