Changeset 1983 for GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
- Timestamp:
- 01/15/07 21:46:52 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
r1982 r1983 80 80 81 81 mViewCellsTree->SetViewCellsManager(this); 82 mSamplesStat.Reset(); 82 83 } 83 84 … … 2076 2077 stat.avgPvs/=stat.viewcells; 2077 2078 stat.avgPvsEntries/=stat.viewcells; 2079 stat.avgFilteredPvsEntries/=stat.viewcells; 2078 2080 stat.avgFilteredPvs/=stat.viewcells; 2079 2081 stat.avgFilterContribution/=stat.viewcells; … … 2109 2111 s<<"#AVG_REL_PVS_INCREASE\n"<<pvsStat.avgRelPvsIncrease<<endl; 2110 2112 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(); 2111 2122 } 2112 2123 … … 2329 2340 ray.mRelativePvsContribution = 0.0f; 2330 2341 2342 mSamplesStat.mRays++; 2343 2331 2344 if (!ray.mTerminationObject) 2332 2345 return 0.0f; … … 2352 2365 CastLineSegment(origin, termination, viewCells); 2353 2366 2354 2367 mSamplesStat.mViewCells+=viewCells.size(); 2368 2355 2369 if (storeViewCells) 2356 2370 { … … 2379 2393 } 2380 2394 2395 mSamplesStat.mPvsContributions += ray.mPvsContribution; 2396 if (ray.mPvsContribution) 2397 mSamplesStat.mContributingRays++; 2398 2381 2399 #if AVG_RAY_CONTRIBUTIONS 2382 2400 ray.mRelativePvsContribution /= (float)viewCells.size();
Note: See TracChangeset
for help on using the changeset viewer.