Changeset 1761 for GTP/trunk/Lib/Vis/Preprocessing/src/BvHierarchy.cpp
- Timestamp:
- 11/16/06 15:41:44 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/BvHierarchy.cpp
r1760 r1761 27 27 #define USE_VOLUMES_FOR_HEURISTICS 1 28 28 29 int BvhNode::sMailId = 10000; //2147483647;30 int BvhNode::sReservedMailboxes = 1;29 //int BvhNode::sMailId = 10000; //2147483647; 30 //int BvhNode::sReservedMailboxes = 1; 31 31 32 32 BvHierarchy *BvHierarchy::BvhSubdivisionCandidate::sBvHierarchy = NULL; … … 1871 1871 if (!object) 1872 1872 return NULL; 1873 1874 1873 return object->mBvhLeaf; 1875 1874 … … 2397 2396 nodeStack.pop(); 2398 2397 2399 if (node->IsLeaf()) 2400 { 2401 BvhLeaf *leaf = (BvhLeaf *)node; 2402 if (Overlap(box, leaf->GetBoundingBox())) { 2403 Intersectable *object = leaf; 2404 if (!object->Mailed()) { 2405 object->Mail(); 2406 objects.push_back(object); 2407 } 2398 if (node->IsLeaf()) 2399 { 2400 BvhLeaf *leaf = (BvhLeaf *)node; 2401 if (Overlap(box, leaf->GetBoundingBox())) { 2402 Intersectable *object = leaf; 2403 if (!object->Mailed()) { 2404 object->Mail(); 2405 objects.push_back(object); 2406 } 2407 } 2408 } 2409 else 2410 { 2411 BvhInterior *interior = (BvhInterior *)node; 2412 2413 if (Overlap(box, interior->GetBoundingBox())) 2414 nodeStack.push(interior->GetFront()); 2415 2416 if (Overlap(box, interior->GetBoundingBox())) 2417 nodeStack.push(interior->GetBack()); 2408 2418 } 2409 } 2410 else 2411 { 2412 BvhInterior *interior = (BvhInterior *)node; 2413 2414 if (Overlap(box, interior->GetBoundingBox())) 2415 nodeStack.push(interior->GetFront()); 2416 2417 if (Overlap(box, interior->GetBoundingBox())) 2418 nodeStack.push(interior->GetBack()); 2419 } 2420 } 2421 } 2422 2423 } 2419 } 2420 } 2421 2422 }
Note: See TracChangeset
for help on using the changeset viewer.