Changeset 1841 for GTP/trunk/Lib/Vis/Preprocessing/src/BvHierarchy.cpp
- Timestamp:
- 12/02/06 00:15:15 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/BvHierarchy.cpp
r1830 r1841 2179 2179 for (cit = candidateContainer.begin(); cit != cit_end; ++ cit) 2180 2180 { 2181 BvhSubdivisionCandidate *sCandidate = dynamic_cast<BvhSubdivisionCandidate *>(*cit); 2182 2181 2183 // reevaluate priority 2182 EvalSubdivisionCandidate(* oSubdivisionCandidate);2183 tQueue.Push( *cit);2184 EvalSubdivisionCandidate(*sCandidate); 2185 tQueue.Push(sCandidate); 2184 2186 } 2185 2187 } … … 2193 2195 } 2194 2196 2195 cout << " !!size: " << GetStatistics().Leaves() << endl;2197 cout << "size of initial bv subdivision: " << GetStatistics().Leaves() << endl; 2196 2198 } 2197 2199 … … 2580 2582 ObjectContainer::const_iterator backObjectsStart = objects->begin(); 2581 2583 2582 2584 for (oit = objects->begin(); oit != (objects->end() - 1); ++ oit) 2583 2585 { 2584 2586 Intersectable *objS = *oit; … … 2630 2632 ); 2631 2633 2632 cout << "criteria met: " << terminationCriteriaMet << " " << (int)tData.mNode->mObjects.size() << " " << mInitialMinObjects << endl 2633 << AreaRatio(tData.mNode->mObjects.front(), tData.mNode->mObjects.back()) << " " << mInitialMaxAreaRatio << endl 2634 << tData.mNode->mObjects.back()->GetBox().SurfaceArea() << " " << mInitialMinArea << endl; 2634 cout << "criteria met: "<< terminationCriteriaMet << "\n" 2635 << "size: " << (int)tData.mNode->mObjects.size() << " max: " << mInitialMinObjects << endl 2636 << "ratio: " << AreaRatio(tData.mNode->mObjects.front(), tData.mNode->mObjects.back()) << " max: " << mInitialMaxAreaRatio << endl 2637 << "area: " << tData.mNode->mObjects.back()->GetBox().SurfaceArea() << " max: " << mInitialMinArea << endl << endl; 2635 2638 2636 2639 return terminationCriteriaMet;
Note: See TracChangeset
for help on using the changeset viewer.