Changeset 1649 for GTP/trunk/Lib/Vis/Preprocessing/src/BvHierarchy.cpp
- Timestamp:
- 10/19/06 16:14:29 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/BvHierarchy.cpp
r1643 r1649 25 25 #define PROBABILIY_IS_BV_VOLUME 1 26 26 #define USE_FIXEDPOINT_T 0 27 #define COUNT_ORIGIN_OBJECTS 027 //#define COUNT_ORIGIN_OBJECTS 0 28 28 29 29 int BvhNode::sMailId = 10000; //2147483647; … … 1069 1069 const float ratio = newRenderCost / oldRenderCost; 1070 1070 1071 #ifdef _DEBUG1071 //#ifdef _DEBUG 1072 1072 Debug << "\n§§§§ bvh eval const decrease §§§§" << endl 1073 1073 << "back pvs: " << (int)objectsBack.size() << " front pvs: " << (int)objectsFront.size() << " total pvs: " << nTotalObjects << endl … … 1075 1075 << "old rc: " << oldRenderCost / viewSpaceVol << " new rc: " << newRenderCost / viewSpaceVol << endl 1076 1076 << "render cost decrease: " << oldRenderCost / viewSpaceVol - newRenderCost / viewSpaceVol << endl; 1077 #endif1077 //#endif 1078 1078 1079 1079 return ratio; … … 1326 1326 } 1327 1327 } 1328 1329 if ( COUNT_ORIGIN_OBJECTS &&ray->mOriginObject)1328 #if COUNT_ORIGIN_OBJECTS 1329 if (ray->mOriginObject) 1330 1330 { 1331 1331 ray->mOriginObject->mVssRays.push_back(ray); … … 1337 1337 } 1338 1338 } 1339 #endif 1339 1340 } 1340 1341 … … 1509 1510 for (vit = tmpViewCells.begin(); vit != vit_end; ++ vit) 1510 1511 { 1511 //VspViewCell *vc = dynamic_cast<VspViewCell *>(*vit);1512 1512 ViewCell *vc = *vit; 1513 1513 … … 1883 1883 1884 1884 PrintSubdivisionStats(*oSubdivisionCandidate); 1885 1885 1886 1886 return oSubdivisionCandidate; 1887 1887 }
Note: See TracChangeset
for help on using the changeset viewer.