Ignore:
Timestamp:
10/18/06 18:17:27 (18 years ago)
Author:
mattausch
Message:

worked on vsp osp methodsd

File:
1 edited

Legend:

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

    r1633 r1640  
    7979        /// number of invalid leaves 
    8080        int invalidLeaves; 
    81         /// accumulated number of rays refs 
    82         int accumRays; 
     81        /// number of rays refs 
     82        int rayRefs; 
    8383        /// overall pvs size 
    8484        int pvs; 
     
    100100        // TODO: computation wrong 
    101101        double AvgDepth() const { return accumDepth / (double)Leaves();};  
    102         double AvgRays() const { return accumRays / (double)Leaves();};  
     102        double AvgRays() const { return rayRefs / (double)Leaves();};  
    103103 
    104104        void Reset()  
     
    124124                maxPvs = 0; 
    125125                invalidLeaves = 0; 
    126                 accumRays = 0; 
     126                rayRefs = 0; 
    127127                maxObjectRefs = 0; 
    128128                mGlobalCostMisses = 0; 
     
    996996        int EvalContributionToPvs(KdLeaf *leaf) const; 
    997997 
     998        /** Creates new root of hierarchy and computes bounding box. 
     999                Has to be called before the preparation of the subdivision. 
     1000        */ 
     1001        void Initialise(const VssRayContainer &rays, 
     1002                                        AxisAlignedBox3 *forcedBoundingBox); 
    9981003 
    9991004protected: 
Note: See TracChangeset for help on using the changeset viewer.