Ignore:
Timestamp:
11/22/05 17:43:29 (19 years ago)
Author:
mattausch
Message:

fixed ray bug in vspkdtree
added visualizations

File:
1 edited

Legend:

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

    r425 r426  
    5757        // max depth nodes 
    5858        int minPvsNodes; 
     59        // nodes with minimum PVS 
    5960        int minRaysNodes; 
    6061        // max ray contribution nodes 
     
    6566        // max number of rays per node 
    6667        int maxRayRefs; 
     68        // maximal PVS size / leaf 
     69        int maxPvsSize; 
     70 
    6771        // number of dynamically added ray refs 
    6872        int addedRayRefs; 
     
    8690                rays = queryDomains = 0; 
    8791                rayRefs = 0; 
     92                 
    8893                maxDepthNodes = 0; 
    8994                minPvsNodes = 0; 
    90                 minRaysNodes = 0;  
     95                minRaysNodes = 0; 
     96                maxRayContribNodes = 0; 
     97                minSizeNodes = 0; 
     98 
    9199                maxRayRefs = 0; 
    92100                addedRayRefs = removedRayRefs = 0; 
     101                 
    93102                initialPvsSize = 0; 
    94                 maxRayContribNodes = 0; 
    95                 minSizeNodes = 0; 
     103                maxPvsSize = 0; 
    96104        } 
    97105 
     
    146154        */ 
    147155        VspKdTreeInterior *GetParent() const; 
     156 
    148157        /** Sets parent node. 
    149158        */ 
     
    251260        */ 
    252261        int GetPvsSize() const; 
    253         void SetPvsSize(const int s); 
    254262 
    255263        /** If PVS is not valid, this function recomputes the leaf  
     
    258266        void UpdatePvsSize(); 
    259267 
     268        RayInfoContainer &GetRays(); 
     269 
    260270        /** Returns average contribution of a ray to the PVS 
    261271        */ 
     
    278288 
    279289protected: 
    280          
     290 
     291        /** Manually sets PVS size. 
     292                @param s the PVS size 
     293        */ 
     294        void SetPvsSize(const int s); 
     295 
    281296        int mMailbox; 
    282297   
Note: See TracChangeset for help on using the changeset viewer.