Changeset 1905


Ignore:
Timestamp:
12/17/06 04:10:08 (17 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r1903 r1905  
    15511551        Intersectable::NewMail(3); 
    15521552        KdLeaf::NewMail(3); 
    1553         BvhLeaf::NewMail(3); 
     1553        //BvhLeaf::NewMail(3); 
    15541554 
    15551555        RayInfoContainer::const_iterator rit, rit_end = data.mRays->end(); 
     
    15831583        // probability that view point lies in back / front node 
    15841584        float pOverall = data.mProbability; 
    1585         float pFront = pFront = frontBox.GetVolume(); 
     1585        float pFront = frontBox.GetVolume(); 
    15861586        float pBack = pOverall - pFront; 
    15871587 
     
    15901590        //-- evaluate render cost heuristics 
    15911591 
    1592         const float lowerPvsLimit = (float)mViewCellsManager->GetMinPvsSize(); 
    1593         const float upperPvsLimit = (float)mViewCellsManager->GetMaxPvsSize(); 
    1594  
    1595         const float penaltyOld = EvalPvsPenalty(totalPvs, lowerPvsLimit, upperPvsLimit); 
    1596     const float penaltyFront = EvalPvsPenalty(pvsFront, lowerPvsLimit, upperPvsLimit); 
    1597         const float penaltyBack = EvalPvsPenalty(pvsBack, lowerPvsLimit, upperPvsLimit); 
     1592        const float penaltyOld = totalPvs; 
     1593    const float penaltyFront = pvsFront; 
     1594        const float penaltyBack = pvsBack; 
    15981595                         
    15991596        const float oldRenderCost = pOverall * penaltyOld; 
     
    17591756                        // already in front pvs => in both pvss 
    17601757                        if (leaf->Mailed()) 
    1761                         { 
    17621758                                leaf->Mail(2); 
    1763                         } 
    17641759                        else 
    17651760                                leaf->Mail(1); 
Note: See TracChangeset for help on using the changeset viewer.