Changeset 1414 for GTP/trunk/Lib/Vis/Preprocessing/src/KdTree.cpp
- Timestamp:
- 09/18/06 10:52:24 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/KdTree.cpp
r1387 r1414 1319 1319 if (!stream.is_open()) return false; 1320 1320 1321 // sort objects by their id 1321 1322 std::stable_sort(objects.begin(), objects.end(), ilt); 1322 1323 … … 1324 1325 ObjectContainer::const_iterator oit, oit_end = objects.end(); 1325 1326 1326 //-- compute bounding box 1327 1328 /////////////////////////// 1329 //-- compute bounding box of object space 1327 1330 for (oit = objects.begin(); oit != oit_end; ++ oit) 1328 1331 { 1329 Intersectable *obj = *oit;1330 // compute bounding box of view space1331 mBox.Include(obj->GetBox());1332 } 1333 1334 DEL_PTR(mRoot); // we make a new root1332 const AxisAlignedBox3 box = (*oit)->GetBox(); 1333 mBox.Include(box); 1334 } 1335 1336 // hack: we make a new root 1337 DEL_PTR(mRoot); 1335 1338 1336 1339 KdNode *node = LoadNextNode(stream, NULL, objects); … … 1377 1380 { 1378 1381 EvaluateLeafStats(tData); 1379 //Debug << "l" << endl;1382 cout << "l"; 1380 1383 } 1381 1384 }
Note: See TracChangeset
for help on using the changeset viewer.