Ignore:
Timestamp:
10/28/05 18:13:22 (19 years ago)
Author:
mattausch
Message:

added findneighbours method

File:
1 edited

Legend:

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

    r359 r360  
    129129        void ProcessPolygons(PolygonContainer *polys, const bool storePolys); 
    130130 
     131        static int mailID; 
     132        int mailbox; 
     133   
     134        void Mail() { mailbox = mailID; } 
     135        static void NewMail() { mailID++; } 
     136        bool Mailed() const { return mailbox == mailID; } 
     137 
    131138//int mViewCellIdx; 
    132139protected: 
     
    356363        BspTreeStatistics &GetStat(); 
    357364 
     365        /** finds neighbouring leaves of this tree node. 
     366        */ 
     367        int FindNeighbors(BspNode *n, vector<BspNode *> &neighbors, bool onlyUnmailed); 
     368 
     369        /** Extracts geometry associated with the split plane leading to this node. 
     370        */ 
     371        void ConstructGeometry(BspNode *n, PolygonContainer &polys) const; 
     372 
    358373protected: 
    359374 
     
    585600                                  RayContainer &backRays); 
    586601 
     602 
     603        /** Extracts the split planes representing the space bounded by node n. 
     604        */ 
     605        void ExtractSplitPlanes(BspNode *n, vector<Plane3 *> planes, vector<bool> sides) const; 
     606 
    587607        /// Pointer to the root of the tree 
    588608        BspNode *mRoot; 
Note: See TracChangeset for help on using the changeset viewer.