Ignore:
Timestamp:
01/01/06 06:25:55 (19 years ago)
Author:
mattausch
Message:

fixed bug in raycasting
added valid view point regions, get view point only from valid regions

File:
1 edited

Legend:

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

    r485 r487  
    211211        */ 
    212212        int GetDepth() const; 
    213         static int sMailId; 
    214         int mMailbox; 
    215    
     213 
     214        /** returns true if the whole subtree is valid 
     215        */ 
     216        bool TreeValid() const; 
     217 
     218        void SetTreeValid(const bool v); 
     219 
     220        //-- mailing options 
     221 
    216222        void Mail() { mMailbox = sMailId; } 
    217223        static void NewMail() { ++ sMailId; } 
    218224        bool Mailed() const { return mMailbox == sMailId; } 
    219225 
     226        static int sMailId; 
     227        int mMailbox; 
     228 
    220229protected: 
    221230 
     231        /// if this sub tree is a completely valid view space region 
     232        bool mTreeValid; 
    222233        /// parent of this node 
    223234        BspInterior *mParent; 
     
    294305        void SetViewCell(BspViewCell *viewCell); 
    295306 
     307        /// Rays piercing this leaf. 
    296308        VssRayContainer mVssRays; 
    297309         
Note: See TracChangeset for help on using the changeset viewer.