Ignore:
Timestamp:
01/16/06 03:23:29 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/VspBspTree.h

    r532 r542  
    6060                /// how often this branch has missed the max-cost ratio 
    6161                int mMaxCostMisses; 
    62          
     62                /// bounding box of current view space. 
     63                ///AxisAlignedBox3 mBbox; 
     64                 
    6365                /** Returns average ray contribution. 
    6466                */ 
     
    7880                mGeometry(NULL), 
    7981                mMaxCostMisses(0) 
     82                //,mIsAxisAligned(false) 
    8083                {} 
    8184                 
     
    297300                                                  ViewCellContainer &viewCells, 
    298301                                                  bool onlyUnmailed = false) const; 
     302 
     303        /** returns maximal valid pvs. 
     304        */ 
     305        int GetMaxPvs() { return mMaxPvs;} 
     306 
     307        /** Checks validy of view cells. 
     308                if not valid, sets regions invalid and deletes view cell. 
     309        */ 
     310        void CheckValidy(); 
     311 
    299312protected: 
    300313 
     
    326339        }; 
    327340 
     341        float EvalAxisAlignedSplitCost(const VspBspTraversalData &data, 
     342                                                                   const AxisAlignedBox3 &box, 
     343                                                                   const int axis, 
     344                                                                   const float &position) const; 
     345 
    328346        /** Returns view cell corresponding to  
    329347                the invalid view space. If it does not exist, it is created. 
     
    447465                                                                 BspNodeGeometry **backGeom, 
    448466                                                                 float &frontArea, 
    449                                                                  float &backArea); 
     467                                                                 float &backArea, 
     468                                                                 bool useKdSplit); 
    450469 
    451470        /** Sorts split candidates for surface area heuristics for axis aligned splits. 
     
    779798        static float sOverallCost; 
    780799 
     800        /** Evaluates the merge costs of the leaves. 
     801        */ 
     802        void EvalMergeCost(); 
     803 
    781804protected: 
    782805 
     
    784807        */ 
    785808        float GetCost(ViewCell *vc) const; 
    786         /** Evaluates the merge costs of the leaves. 
    787         */ 
    788         void EvalMergeCost(); 
    789  
     809         
    790810        int mLeaf1Id; 
    791811        int mLeaf2Id; 
Note: See TracChangeset for help on using the changeset viewer.