Ignore:
Timestamp:
05/03/06 10:28:20 (18 years ago)
Author:
mattausch
Message:

added new active view cell concept

File:
1 edited

Legend:

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

    r879 r882  
    3434 
    3535// pvs penalty can be different from pvs size 
    36 inline float EvalPvsPenalty(const int pvs,  
    37                                                         const int lower, 
    38                                                         const int upper) 
     36inline static float EvalPvsPenalty(const int pvs,  
     37                                                                   const int lower, 
     38                                                                   const int upper) 
    3939{ 
    4040        // clamp to minmax values 
     
    269269 
    270270int VspBspTree::AddToPolygonSoup(const ViewCellContainer &viewCells, 
    271                                                           PolygonContainer &polys, 
    272                                                           int maxObjects) 
     271                                                                PolygonContainer &polys, 
     272                                                                int maxObjects) 
    273273{ 
    274274        int limit = (maxObjects > 0) ? 
     
    11471147  RayInfoContainer::const_iterator it, it_end = rays.end(); 
    11481148   
    1149   ViewCell *vc = leaf->GetViewCell(); 
     1149  ViewCellLeaf *vc = leaf->GetViewCell(); 
    11501150   
    11511151  // add contributions from samples to the PVS 
     
    25892589                        if (!onlyValid || node->TreeValid()) 
    25902590                        { 
    2591                                 ViewCell *leafVc = dynamic_cast<BspLeaf *>(node)->GetViewCell(); 
     2591                                ViewCellLeaf *leafVc = dynamic_cast<BspLeaf *>(node)->GetViewCell(); 
    25922592 
    25932593                                ViewCell *viewCell = mViewCellsTree->GetActiveViewCell(leafVc); 
     
    32603260int VspBspTree::CastLineSegment(const Vector3 &origin, 
    32613261                                                                const Vector3 &termination, 
    3262                                                                 vector<ViewCell *> &viewcells) 
     3262                                                                ViewCellContainer &viewcells) 
    32633263{ 
    32643264        int hits = 0; 
     
    37553755        nodeStack.push(mRoot); 
    37563756   
    3757         ViewCell *viewcell = NULL; 
     3757        ViewCellLeaf *viewcell = NULL; 
    37583758   
    37593759        while (!nodeStack.empty())   
Note: See TracChangeset for help on using the changeset viewer.