Changeset 1149 for GTP/trunk/Lib/Vis/Preprocessing/src/VspOspTree.cpp
- Timestamp:
- 07/25/06 08:42:07 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/VspOspTree.cpp
r1147 r1149 413 413 Environment::GetSingleton()->GetBoolValue("VspTree.splitUseOnlyDrivingAxis", mOnlyDrivingAxis); 414 414 415 //Environment::GetSingleton()->GetFloatValue("VspTree.maxTotalMemory", mMaxTotalMemory);415 Environment::GetSingleton()->GetIntValue("VspTree.maxTests", mMaxTests); 416 416 Environment::GetSingleton()->GetFloatValue("VspTree.maxStaticMemory", mMaxMemory); 417 417 … … 1390 1390 float &position) 1391 1391 { 1392 RayInfoContainer *rays = tData.mRays; 1392 RayInfoContainer usedRays; 1393 1394 if (mMaxTests < (int)tData.mRays->size()) 1395 { 1396 GetRayInfoSets(*tData.mRays, mMaxTests, usedRays); 1397 } 1398 else 1399 { 1400 usedRays = *tData.mRays; 1401 } 1402 1393 1403 int pvsSize = tData.mPvs; 1394 1404 … … 1401 1411 const float maxBand = minBox + mMaxBand * sizeBox; 1402 1412 1403 SortSplitCandidates( *rays, axis, minBand, maxBand);1413 SortSplitCandidates(usedRays, axis, minBand, maxBand); 1404 1414 1405 1415 // prepare the sweep 1406 1416 // (note: returns pvs size, so there would be no need 1407 1417 // to give pvs size as argument) 1408 pvsSize = PrepareHeuristics( *rays);1418 pvsSize = PrepareHeuristics(usedRays); 1409 1419 1410 1420 // go through the lists, count the number of objects left and right … … 1448 1458 1449 1459 // HACK: current positition is BETWEEN visibility events 1450 if ( (ci + 1) != ci_end)1460 if (0 && ((ci + 1) != ci_end)) 1451 1461 currentPos = ((*ci).value + (*(ci + 1)).value) * 0.5f; 1452 1462 else … … 3295 3305 3296 3306 // HACK: current positition is BETWEEN visibility events 3297 if ( (ci + 1) != ci_end)3307 if (0 && ((ci + 1) != ci_end)) 3298 3308 currentPos = ((*ci).mPos + (*(ci + 1)).mPos) * 0.5f; 3299 3309 else … … 3301 3311 3302 3312 // note matt: can happen that volr is less than zero: bug or numerical error? 3303 //if (volr < 0) Debug << "warning!! " << totalVol << " " << volRightDecr << " " << volRightDecr - totalVol << endl;3313 //if (volr < 0) Debug << "warning!"; 3304 3314 3305 3315 /*Debug << "pos: " << (*ci).mPos
Note: See TracChangeset
for help on using the changeset viewer.