Ignore:
Timestamp:
05/02/07 17:28:26 (17 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r2332 r2342  
    3434                                           myless<vector<ViewCell *>::value_type> > TraversalQueue; 
    3535 
    36   int ViewCell::sMailId = 10000;//2147483647; 
    37   int ViewCell::sReservedMailboxes = 1; 
    38  
     36int ViewCell::sMailId = 10000;//2147483647; 
     37int ViewCell::sReservedMailboxes = 1; 
    3938 
    4039float MergeCandidate::sRenderCostWeight = 0; 
     
    13051304        { 
    13061305                const float penalty =  
    1307                         EvalPvsPenalty(GetPvsCost(vc), lower, upper); 
     1306                        EvalPvsPenalty(GetTrianglesInPvs(vc), lower, upper); 
    13081307 
    13091308                return (mAvgRenderCost - penalty) * (mAvgRenderCost - penalty) /  
     
    13231322        if (1) 
    13241323        { 
    1325                 const float penalty = EvalPvsPenalty(GetPvsCost(vc), lower, upper); 
     1324                const float penalty = EvalPvsPenalty(GetTrianglesInPvs(vc), lower, upper); 
    13261325                return fabs(mAvgRenderCost - penalty) / (float)mNumActiveViewCells; 
    13271326        } 
     
    15151514        const float vol = box.GetVolume(); 
    15161515 
    1517         const float rootPvs = GetPvsCost(mRoot); 
     1516        const float rootPvs = GetTrianglesInPvs(mRoot); 
    15181517        const int rootEntries = GetPvsEntries(mRoot); 
    15191518         
     
    15501549                        ViewCellInterior *interior = static_cast<ViewCellInterior *>(vc); 
    15511550 
    1552                         const float parentCost = GetPvsCost(interior); 
     1551                        const float parentCost = GetTrianglesInPvs(interior); 
    15531552                        const int parentPvsEntries = GetPvsEntries(interior); 
    15541553            const float parentExpCost = (float)parentCost * interior->GetVolume(); 
     
    15661565                                ViewCell *vc = *it; 
    15671566 
    1568                                 const float pvsCost = GetPvsCost(vc); 
     1567                                const float pvsCost = GetTrianglesInPvs(vc); 
    15691568                                const int pvsEntries = GetPvsEntries(vc); 
    15701569 
     
    19531952 
    19541953 
    1955 float ViewCellsTree::GetPvsCost(ViewCell *vc) const 
     1954float ViewCellsTree::GetTrianglesInPvs(ViewCell *vc) const 
    19561955{ 
    19571956        float pvsCost = 0; 
     
    21592158 
    21602159        const float vol = mViewCellsManager->GetViewSpaceBox().GetVolume(); 
    2161         const float rootPvs = GetPvsCost(mRoot); 
     2160        const float rootPvs = GetTrianglesInPvs(mRoot); 
    21622161         
    21632162        float totalRenderCost; 
     
    21822181                        ViewCellInterior *interior = static_cast<ViewCellInterior *>(vc); 
    21832182 
    2184                         const float parentCost = GetPvsCost(interior); 
     2183                        const float parentCost = GetTrianglesInPvs(interior); 
    21852184                        const float parentExpCost = parentCost * interior->GetVolume(); 
    21862185 
     
    21962195                                ViewCell *vc = *it; 
    21972196 
    2198                                 const float pvsCost = GetPvsCost(vc); 
     2197                                const float pvsCost = GetTrianglesInPvs(vc); 
    21992198                                 
    22002199                                childExpCost += (float) pvsCost * vc->GetVolume(); 
     
    22482247                        ViewCellInterior *interior = static_cast<ViewCellInterior *>(vc); 
    22492248 
    2250                         const float parentPvsCost = GetPvsCost(interior); 
     2249                        const float parentPvsCost = GetTrianglesInPvs(interior); 
    22512250                        const int parentPvsEntries = GetPvsEntries(interior); 
    22522251            const float parentExpCost = (float)parentPvsCost * interior->GetVolume(); 
     
    22882287        ++ vcStat.viewCells; 
    22892288                 
    2290         const float pvsCost = GetPvsCost(vc); 
     2289        const float pvsCost = GetTrianglesInPvs(vc); 
    22912290 
    22922291        vcStat.pvsCost += pvsCost; 
Note: See TracChangeset for help on using the changeset viewer.