Ignore:
Timestamp:
11/16/06 15:41:44 (18 years ago)
Author:
bittner
Message:

filter updates, kd + bvh PVS coexistence

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/BvHierarchy.cpp

    r1760 r1761  
    2727#define USE_VOLUMES_FOR_HEURISTICS 1 
    2828 
    29 int BvhNode::sMailId = 10000; //2147483647; 
    30 int BvhNode::sReservedMailboxes = 1; 
     29//int BvhNode::sMailId = 10000; //2147483647; 
     30//int BvhNode::sReservedMailboxes = 1; 
    3131 
    3232BvHierarchy *BvHierarchy::BvhSubdivisionCandidate::sBvHierarchy = NULL; 
     
    18711871        if (!object)  
    18721872                return NULL; 
    1873          
    18741873        return object->mBvhLeaf; 
    18751874         
     
    23972396        nodeStack.pop(); 
    23982397         
    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()); 
    24082418          } 
    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.