Changeset 2072 for GTP/trunk/Lib/Vis/Preprocessing/src/VspBspTree.cpp
- Timestamp:
- 02/01/07 17:38:55 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/VspBspTree.cpp
r2071 r2072 27 27 #define COUNT_ORIGIN_OBJECTS 1 28 28 29 #define STORE_PVS 129 #define STORE_PVS 0 30 30 31 31 … … 451 451 } 452 452 453 // normalize454 453 if (mUseAreaForPvs) 455 454 mTermMinProbability *= mBoundingBox.SurfaceArea(); 456 else 455 else // normalize volume 457 456 mTermMinProbability *= mBoundingBox.GetVolume(); 458 459 457 460 458 mBspStats.nodes = 1; … … 1273 1271 if (ray->mTerminationObject) 1274 1272 { 1275 //cout << "m";1276 1273 if (vc->AddPvsSample(ray->mTerminationObject, ray->mPdf, contribution)) 1277 1274 madeContrib = true; … … 2126 2123 pOverall = data.mProbability; 2127 2124 2128 if (!mUseAreaForPvs) // use front and back cell areas to approximate volume2125 if (!mUseAreaForPvs) 2129 2126 { 2130 2127 pFront = geomFront.GetVolume(); … … 2144 2141 else 2145 2142 { 2143 // use front and back cell areas to approximate volume 2146 2144 pFront = geomFront.GetArea(); 2147 2145 pBack = geomBack.GetArea();
Note: See TracChangeset
for help on using the changeset viewer.