Changeset 1736 for GTP/trunk/Lib/Vis/Preprocessing/src/HierarchyManager.cpp
- Timestamp:
- 11/09/06 19:05:09 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/HierarchyManager.cpp
r1733 r1736 151 151 Environment::GetSingleton()->GetIntValue( 152 152 "Hierarchy.Construction.maxRepairs", mMaxRepairs); 153 153 154 // compare to bytes 154 155 mTermMaxMemory *= (1024.0f * 1024.0f); … … 504 505 /// Repair split queue, i.e., affected view space candidates 505 506 cout << "repairing queue ... " << endl; 506 RepairQueue(dirtyVspList, viewSpaceQueue, true);507 const int repaired = RepairQueue(dirtyVspList, viewSpaceQueue, true); 507 508 508 cout << "\nrepaired " << (int)dirtyVspList.size() << "candidates" << endl;509 cout << "\nrepaired " << repaired << " candidates from " << (int)dirtyVspList.size() << " dirtied candidates" << endl; 509 510 } 510 511 else … … 534 535 /// Repair split queue 535 536 cout << "repairing queue ... " << endl; 536 RepairQueue(dirtyOspList, objectSpaceQueue, true);537 538 cout << " repaired " << (int)dirtyOspList.size() << "candidates" << endl;537 const int repaired = RepairQueue(dirtyOspList, objectSpaceQueue, true); 538 539 cout << "\nrepaired " << repaired << " candidates from " << (int)dirtyOspList.size() << " dirtied candidates" << endl; 539 540 } 540 541 } … … 1310 1311 1311 1312 1312 void HierarchyManager::RepairQueue(const SubdivisionCandidateContainer &dirtyList, 1313 1314 1313 int HierarchyManager::RepairQueue(const SubdivisionCandidateContainer &dirtyList, 1314 SplitQueue &splitQueue, 1315 const bool recomputeSplitPlaneOnRepair) 1315 1316 { 1316 1317 // for each update of the view space partition: … … 1330 1331 // split candidate 1331 1332 1333 int repaired = 0; 1334 1332 1335 // collect list of "dirty" candidates 1333 1336 const long startTime = GetTime(); … … 1356 1359 // reinsert 1357 1360 splitQueue.Push(sc); 1358 1361 1362 ++ repaired; 1359 1363 cout << "."; 1360 1364 … … 1371 1375 mHierarchyStats.mRepairTime += timeDiff; 1372 1376 1373 if (0) cout << "repaired in " << timeDiff * 1e-3f << " secs" << endl;1377 return repaired; 1374 1378 } 1375 1379
Note: See TracChangeset
for help on using the changeset viewer.