Ignore:
Timestamp:
12/20/06 00:26:02 (17 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r1903 r1912  
    382382                mNode(NULL), 
    383383                mDepth(0), 
    384                 mProbability(0.0), 
    385384                mMaxCostMisses(0),  
    386385                mAxis(0), 
    387                 mNumRays(0) 
     386                mNumRays(0), 
     387                mCorrectedPvs(0), 
     388                mPvs(0), 
     389                mCorrectedRenderCost(0), 
     390                mRenderCost(0) 
    388391                { 
    389392                        for (int i = 0; i < 4; ++ i) 
     
    397400                mNode(node),  
    398401                mDepth(depth), 
    399                 //mBoundingBox(box), 
    400                 mProbability(v), 
    401402                mMaxCostMisses(0), 
    402403                mAxis(0), 
    403                 mNumRays(numRays) 
     404                mNumRays(numRays), 
     405                mCorrectedPvs(0), 
     406                mPvs(0), 
     407                mCorrectedRenderCost(0), 
     408                mRenderCost(v) 
    404409                { 
    405410                        for (int i = 0; i < 4; ++ i) 
     
    420425                /// current depth 
    421426                int mDepth; 
    422                 /// the probability that this node is seen 
    423                 float mProbability; 
    424                 /// the bounding box of the node 
    425                 //AxisAlignedBox3 mBoundingBox; 
     427                /// the render cost of the node 
     428                float mRenderCost; 
     429                /// the corrected render cost; 
     430                float mCorrectedRenderCost; 
    426431                /// how often this branch has missed the max-cost ratio 
    427432                int mMaxCostMisses; 
     
    430435                /// number of rays 
    431436                int mNumRays; 
     437                /// parent Pvs; 
     438                float mPvs; 
     439                /// parent pvs correction factor 
     440                float mCorrectedPvs; 
     441 
    432442                /// the sorted objects for the three dimensions 
    433443                ObjectContainer *mSortedObjects[4];              
     
    486496                        return mPriority; 
    487497                } 
     498 
     499                /////////////////////////////7 
    488500 
    489501                /// pointer to parent tree. 
     
    496508                /// the objects on the back of the potential split 
    497509                ObjectContainer mBackObjects; 
     510                         
     511                float mCorrectedFrontPvs; 
     512                float mCorrectedBackPvs; 
     513 
     514                float mCorrectedFrontCost; 
     515                float mCorrectedBackCost; 
    498516        }; 
    499517 
     
    821839        /** Evaluates increase in pvs size. 
    822840        */ 
    823         int EvalPvsEntriesIncr(BvhSubdivisionCandidate &splitCandidate) const; 
     841        int EvalPvsEntriesIncr(BvhSubdivisionCandidate &splitCandidate, const float avgRayContri) const; 
    824842 
    825843        /** Rays will be clipped to the bounding box. 
Note: See TracChangeset for help on using the changeset viewer.