Ignore:
Timestamp:
09/21/06 19:14:24 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r1418 r1449  
    474474        mBspStats.nodes = 1; 
    475475        mBspStats.polys = (int)polys.size(); 
    476         mGlobalCostMisses = 0; 
     476        mBspStats.mGlobalCostMisses = 0; 
    477477 
    478478 
     
    676676                //Debug << "cost ratio: " << costRatio << endl; 
    677677                if (costRatio < mTermMinGlobalCostRatio) 
    678                         ++ mGlobalCostMisses; 
    679                  
     678                { 
     679                        ++ mBspStats.mGlobalCostMisses; 
     680                } 
     681 
    680682                if (0 && !mOutOfMemory) 
    681683                { 
    682684                        float mem = GetMemUsage(); 
    683  
    684685                        if (mem > mMaxMemory) 
    685686                        { 
     
    693694 
    694695                if (r == mRoot) 
     696                { 
    695697                        Debug << "VSP BSP tree construction time spent at root: " 
    696698                                  << TimeDiff(startTime, GetTime())*1e-3 << "s" << endl; 
     699                } 
    697700 
    698701                if (mBspStats.Leaves() >= nLeaves) 
     
    753756                || mOutOfMemory  
    754757                || (mBspStats.Leaves() >= mMaxViewCells)  
    755                 || (mGlobalCostMisses >= mTermGlobalCostMissTolerance) 
     758                || (mBspStats.mGlobalCostMisses >= mTermGlobalCostMissTolerance) 
    756759                 ); 
    757760} 
Note: See TracChangeset for help on using the changeset viewer.