Changeset 1522 for GTP/trunk/Lib/Vis/Preprocessing/src/BvHierarchy.cpp
- Timestamp:
- 09/27/06 19:23:51 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/BvHierarchy.cpp
r1486 r1522 489 489 const float renderCostDecr = oldRenderCost - newRenderCost; 490 490 491 //#ifdef _DEBUG491 #ifdef _DEBUG 492 492 Debug << "old render cost: " << oldRenderCost << endl; 493 493 Debug << "new render cost: " << newRenderCost << endl; 494 494 Debug << "render cost decrease: " << renderCostDecr << endl; 495 //#endif495 #endif 496 496 splitCandidate.SetRenderCostDecrease(renderCostDecr); 497 497 … … 527 527 (0 528 528 || (mBvhStats.Leaves() >= mTermMaxLeaves) 529 || (mBvhStats.mGlobalCostMisses >= mTermGlobalCostMissTolerance)529 //|| (mBvhStats.mGlobalCostMisses >= mTermGlobalCostMissTolerance) 530 530 //|| mOutOfMemory 531 531 ); … … 974 974 975 975 #ifdef _DEBUG 976 Debug << "\n§§§§ eval local cost§§§§" << endl976 Debug << "\n§§§§ bvh eval const decrease §§§§" << endl 977 977 << "back pvs: " << (int)objectsBack.size() << " front pvs: " << (int)objectsFront.size() << " total pvs: " << nTotalObjects << endl 978 978 << "back p: " << volBack / viewSpaceVol << " front p " << volFront / viewSpaceVol << " p: " << totalVol / viewSpaceVol << endl … … 1656 1656 const ObjectContainer &objects) 1657 1657 { 1658 /////////////////////////////////////// ////////////////////////1659 //-- note matt:we assume that we have objects sorted by their id =>1658 /////////////////////////////////////// 1659 //-- we assume that we have objects sorted by their id => 1660 1660 //-- we don't have to sort them here and an binary search 1661 1661 //-- for identifying if a object is in a leaf. … … 1665 1665 1666 1666 mBvhStats.nodes = 1; 1667 1668 1667 1669 1668 // store pointer to this tree 1670 1669 BvhSubdivisionCandidate::sBvHierarchy = this;
Note: See TracChangeset
for help on using the changeset viewer.