Changeset 467 for trunk/VUT/GtpVisibilityPreprocessor/src/VssRay.cpp
- Timestamp:
- 12/15/05 15:18:15 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/VssRay.cpp
r464 r467 194 194 } 195 195 } 196 197 198 void 199 VssRayContainer::PrintStatistics(ostream &s) 200 { 201 202 VssRayContainer::const_iterator it = begin(), it_end = end(); 203 int sumContributions = 0; 204 float sumRelContributions = 0.0f; 205 206 for (; it != it_end; ++it) { 207 VssRay *ray = *it; 208 sumContributions += ray->mPvsContribution; 209 sumRelContributions += ray->mRelativePvsContribution; 210 } 211 212 s<<"##### VSS RAY STAT ##########\n"; 213 s<<"#RAYS\n"<<size()<<endl; 214 s<<"#AVG_RAY_PVS_CONTRIBUTION\n"<<sumContributions/(float)size()<<endl; 215 s<<"#AVG_RAY_RELATIVE_PVS_CONTRIBUTION\n"<<sumRelContributions/ 216 (float)size()<<endl; 217 218 }
Note: See TracChangeset
for help on using the changeset viewer.