- Timestamp:
- 01/09/06 10:28:43 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/VspBspTree.cpp
r508 r509 833 833 box.Initialize(); 834 834 835 #if 0 836 RayInfoContainer::const_iterator ri, ri_end = tData.mRays->end(); 837 838 for(ri = tData.mRays->begin(); ri < ri_end; ++ ri) 839 box.Include((*ri).ExtrapTermination()); 840 #else 841 PolygonContainer::const_iterator it, it_end = tData.mGeometry->mPolys.end(); 842 843 for(it = tData.mGeometry->mPolys.begin(); it < it_end; ++ it) 844 box.Include(*(*it)); 845 846 #endif 835 if (1 && mPvsUseArea) 836 { 837 PolygonContainer::const_iterator it, it_end = tData.mGeometry->mPolys.end(); 838 839 for(it = tData.mGeometry->mPolys.begin(); it < it_end; ++ it) 840 box.Include(*(*it)); 841 } 842 else 843 { 844 RayInfoContainer::const_iterator ri, ri_end = tData.mRays->end(); 845 846 for(ri = tData.mRays->begin(); ri < ri_end; ++ ri) 847 box.Include((*ri).ExtrapTermination()); 848 } 849 847 850 int sAxis = box.Size().DrivingAxis(); 848 851 … … 2194 2197 vector<BspLeaf *>::const_iterator it, it_end = leaves.end(); 2195 2198 2196 Debug << "mergequeue size: " << mMergeQueue.size() << endl; 2199 int candidates = 0; 2200 2197 2201 // find merge candidates and push them into queue 2198 2202 for (it = leaves.begin(); it != it_end; ++ it) … … 2217 2221 { 2218 2222 if ((*nit)->GetViewCell() != leaf->GetViewCell()) 2223 { 2219 2224 mMergeQueue.push(BspMergeCandidate(leaf, *nit)); 2220 } 2221 } 2222 2223 Debug << "new mergequeue size: " << mMergeQueue.size() << endl; 2225 ++ candidates; 2226 } 2227 } 2228 } 2229 2230 Debug << "found " << candidates << " new merge candidates" << endl; 2224 2231 2225 2232 return (int)leaves.size();
Note: See TracChangeset
for help on using the changeset viewer.