Ignore:
Timestamp:
11/23/05 18:29:41 (19 years ago)
Author:
mattausch
Message:

fixed vspkdtree rays bug

File:
1 edited

Legend:

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

    r426 r428  
    3232 
    3333#include "RayInfo.h" 
    34  
     34#include "Containers.h" 
    3535 
    3636/** 
     
    123123 
    124124        friend class VspKdTree; 
    125 #define USE_FIXEDPOINT_T 1 
    126125 
    127126        enum {EInterior, ELeaf}; 
     
    266265        void UpdatePvsSize(); 
    267266 
     267        /** Returns stored rays. 
     268        */ 
    268269        RayInfoContainer &GetRays(); 
    269270 
     271        /** Returns rays into this ray container. 
     272        */ 
     273        void GetRays(VssRayContainer &rays); 
    270274        /** Returns average contribution of a ray to the PVS 
    271275        */ 
     
    275279        inline float GetSqrRayContribution() const; 
    276280 
     281        /** Extracts PVS from ray set. 
     282        */ 
     283        void ExtractPvs(ObjectContainer &objects) const; 
     284 
    277285        //-- mailing options 
    278  
    279286        void Mail(); 
    280287 
     
    286293 
    287294        static int mailID; 
     295 
    288296 
    289297protected: 
     
    441449        float GetRayMemUsage() const; 
    442450 
     451        /** Collects leaves of this tree. 
     452        */ 
     453        void CollectLeaves(vector<VspKdTreeLeaf *> &leaves) const; 
     454 
    443455protected: 
     456 
    444457        // incremental construction 
    445458        virtual void UpdateRays(VssRayContainer &remove, VssRayContainer &add); 
Note: See TracChangeset for help on using the changeset viewer.