Changeset 1727 for GTP/trunk/Lib/Vis/Preprocessing/src/VspTree.cpp
- Timestamp:
- 11/09/06 03:35:58 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/VspTree.cpp
r1715 r1727 462 462 Environment::GetSingleton()->GetIntValue("VspTree.maxTests", mMaxTests); 463 463 464 Environment::GetSingleton()->GetFloatValue("VspTree.Construction.renderCostDecreaseWeight", mRenderCostDecreaseWeight); 464 Environment::GetSingleton()-> 465 GetFloatValue("VspTree.Construction.renderCostDecreaseWeight", mRenderCostDecreaseWeight); 465 466 466 467 // if only the driving axis is used for axis aligned split … … 1254 1255 { 1255 1256 // get subset of rays 1256 RayInfoContainer usedRays; 1257 RayInfoContainer randomRays; 1258 randomRays.reserve(mMaxTests); 1259 1260 RayInfoContainer *usedRays; 1257 1261 1258 1262 if (mMaxTests < (int)tData.mRays->size()) 1259 1263 { 1260 GetRayInfoSets(*tData.mRays, mMaxTests, usedRays); 1264 GetRayInfoSets(*tData.mRays, mMaxTests, randomRays); 1265 usedRays = &randomRays; 1261 1266 } 1262 1267 else 1263 1268 { 1264 usedRays = *tData.mRays;1269 usedRays = tData.mRays; 1265 1270 } 1266 1271 … … 1273 1278 const float maxBand = minBox + mMaxBand * sizeBox; 1274 1279 1275 SortSubdivisionCandidates( usedRays, axis, minBand, maxBand);1280 SortSubdivisionCandidates(*usedRays, axis, minBand, maxBand); 1276 1281 1277 1282 // prepare the sweep 1278 1283 // note: returns pvs size => no need t give pvs size as function parameter 1279 const int pvsSize = PrepareHeuristics( usedRays);1284 const int pvsSize = PrepareHeuristics(*usedRays); 1280 1285 1281 1286 // go through the lists, count the number of objects left and right
Note: See TracChangeset
for help on using the changeset viewer.