Changeset 1286 for GTP/trunk/Lib/Vis/Preprocessing/src/KdTree.cpp
- Timestamp:
- 08/25/06 18:25:09 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/KdTree.cpp
r1233 r1286 331 331 ProcessMultipleRefs(front); 332 332 333 334 333 delete leaf; 334 return node; 335 335 } 336 336 … … 852 852 KdNode * 853 853 KdTree::FindRandomNeighbor(KdNode *n, 854 855 854 bool onlyUnmailed 855 ) 856 856 { 857 857 stack<KdNode *> nodeStack; … … 1288 1288 IN_STREAM stream(filename.c_str(), IN_BIN_MODE); 1289 1289 1290 //if (!stream.is_open()) return false;1290 if (!stream.is_open()) return false; 1291 1291 1292 1292 std::stable_sort(objects.begin(), objects.end(), ilt); … … 1299 1299 { 1300 1300 Intersectable *obj = *oit; 1301 1302 1301 // compute bounding box of view space 1303 1302 mBox.Include(obj->GetBox()); … … 1334 1333 1335 1334 ++ mStat.splits[interior->mAxis]; 1336 1337 //Debug << "plane: " << interior->mAxis << " " << interior->mPosition << endl;1338 //Debug << "box: " << tData.mBox << endl;1339 1335 1340 1336 // compute new bounding box … … 1355 1351 } 1356 1352 } 1357 1358 1353 Debug << mStat << endl; 1359 1354
Note: See TracChangeset
for help on using the changeset viewer.