Ignore:
Timestamp:
09/25/06 18:54:21 (18 years ago)
Author:
mattausch
Message:

worked on guided visibility sampling

File:
1 edited

Legend:

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

    r1315 r1486  
    9191 
    9292                node->Mail(); 
    93  
    94                 return (int)(((BvhLeaf *)node)->mObjects.size()); 
     93                BvhLeaf *leaf = dynamic_cast<BvhLeaf *>(node); 
     94                return (int)leaf->mObjects.size(); 
    9595        }                         
    9696 
    9797        // compute leaf pvs 
    9898        int pvs = 0; 
    99  
    10099        stack<BvhNode *> tStack; 
    101  
    102100        tStack.push(bvhobj->GetItem()); 
    103101 
     
    146144        { 
    147145                Intersectable *obj = (*it).first; 
    148  
     146         
    149147                switch (obj->Type()) 
    150148                { 
Note: See TracChangeset for help on using the changeset viewer.