Ignore:
Timestamp:
01/15/07 21:46:52 (18 years ago)
Author:
bittner
Message:

merge

File:
1 edited

Legend:

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

    r1982 r1983  
    8080 
    8181        mViewCellsTree->SetViewCellsManager(this); 
     82        mSamplesStat.Reset(); 
    8283} 
    8384 
     
    20762077        stat.avgPvs/=stat.viewcells; 
    20772078        stat.avgPvsEntries/=stat.viewcells; 
     2079        stat.avgFilteredPvsEntries/=stat.viewcells; 
    20782080        stat.avgFilteredPvs/=stat.viewcells; 
    20792081        stat.avgFilterContribution/=stat.viewcells; 
     
    21092111  s<<"#AVG_REL_PVS_INCREASE\n"<<pvsStat.avgRelPvsIncrease<<endl; 
    21102112  s<<"#DEV_REL_PVS_INCREASE\n"<<pvsStat.devRelPvsIncrease<<endl; 
     2113 
     2114  s<<"#CONTRIBUTING_RAYS\n"<<mSamplesStat.mContributingRays<<endl; 
     2115 
     2116  if (mSamplesStat.mRays) { 
     2117        s<<"#AVG_VIEWCELLS_PER_RAY\n"<<mSamplesStat.mViewCells/(float)mSamplesStat.mRays<<endl; 
     2118  } else { 
     2119        s<<"#AVG_VIEWCELLS_PER_RAY\n 1 \n"; 
     2120  } 
     2121  mSamplesStat.Reset(); 
    21112122} 
    21122123 
     
    23292340        ray.mRelativePvsContribution = 0.0f; 
    23302341 
     2342        mSamplesStat.mRays++; 
     2343         
    23312344        if (!ray.mTerminationObject) 
    23322345                return 0.0f; 
     
    23522365        CastLineSegment(origin, termination, viewCells); 
    23532366 
    2354          
     2367        mSamplesStat.mViewCells+=viewCells.size(); 
     2368 
    23552369        if (storeViewCells) 
    23562370        {        
     
    23792393        } 
    23802394 
     2395        mSamplesStat.mPvsContributions += ray.mPvsContribution; 
     2396        if (ray.mPvsContribution) 
     2397          mSamplesStat.mContributingRays++; 
     2398         
    23812399#if AVG_RAY_CONTRIBUTIONS 
    23822400        ray.mRelativePvsContribution /= (float)viewCells.size(); 
Note: See TracChangeset for help on using the changeset viewer.