Changeset 2130 for GTP/trunk/Lib/Vis/Preprocessing/src/RssTree.cpp
- Timestamp:
- 02/20/07 13:05:26 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/RssTree.cpp
r2119 r2130 403 403 cout<<"Dirr Bbox = "<<dirBBox<<endl; 404 404 405 stat.rays = rays.size();405 stat.rays = (int)rays.size(); 406 406 stat.initialPvsSize = 0; 407 407 for (int i=0; i < mRoots.size(); i++) { … … 862 862 info.axis = axis; 863 863 info.costRatio = 0.5f; // not true but good for speeding up the subdivision at the top levels! 864 info.raysBack = info.raysFront = leaf->rays.size()/2;864 info.raysBack = info.raysFront = (int)leaf->rays.size()/2; 865 865 return; 866 866 } … … 953 953 954 954 currInfo.raysBack = 0; 955 currInfo.raysFront = leaf->rays.size();955 currInfo.raysFront = (int)leaf->rays.size(); 956 956 957 957 currInfo.pvsBack = 0; … … 1135 1135 splitCandidates->clear(); 1136 1136 1137 int requestedSize = 2*( node->rays.size());1137 int requestedSize = 2*((int)node->rays.size()); 1138 1138 // creates a sorted split candidates array 1139 1139 if (splitCandidates->capacity() > 500000 && … … 1195 1195 } 1196 1196 1197 if ( (int)(leaf->rays.size()) > stat.maxRayRefs)1198 stat.maxRayRefs = leaf->rays.size();1197 if ((int)leaf->rays.size() > stat.maxRayRefs) 1198 stat.maxRayRefs = (int)leaf->rays.size(); 1199 1199 1200 1200 } … … 1321 1321 // update stats 1322 1322 stat.rayRefs -= (int)leaf->rays.size(); 1323 stat.rayRefs += back->rays.size() + front->rays.size();1323 stat.rayRefs += (int)(back->rays.size() + front->rays.size()); 1324 1324 1325 1325 … … 1461 1461 Debug<<"done."<<endl<<flush; 1462 1462 1463 stat.rayRefs += add.size() -remove.size();1463 stat.rayRefs += (int)add.size() - (int)remove.size(); 1464 1464 1465 1465 Debug<<"Updating statistics..."<<endl<<flush; … … 1817 1817 } 1818 1818 } 1819 return pvs.size();1819 return (int)pvs.size(); 1820 1820 } 1821 1821 … … 2021 2021 ) 2022 2022 { 2023 int nrays = leaf->rays.size();2023 int nrays = (int)leaf->rays.size(); 2024 2024 2025 2025 if (nrays == 2) { … … 2040 2040 2041 2041 if (r1 == r2) 2042 r2 = (r1+1)% leaf->rays.size();2042 r2 = (r1+1)%(int)leaf->rays.size(); 2043 2043 2044 2044 #else … … 2158 2158 int indices[3]; 2159 2159 2160 int size = rays.size();2160 int size = (int)rays.size(); 2161 2161 // use russian roulete selection for the tripple 2162 2162 // number of free positions for the bullet … … 2230 2230 for (; ri != rays.end(); ++ri, ++rayIndex) { 2231 2231 RssTreeNode::RayInfo *ray = *ri; 2232 int tries = rays.size();2232 int tries = (int)rays.size(); 2233 2233 for (int i = 0; i < tries; i++) { 2234 2234 int r1, r2, r3; … … 2648 2648 } 2649 2649 2650 return rays.size();2650 return (int)rays.size(); 2651 2651 2652 2652 }
Note: See TracChangeset
for help on using the changeset viewer.