Ignore:
Timestamp:
11/09/05 15:22:39 (19 years ago)
Author:
mattausch
Message:

fixed bug in bsp geometry construction

File:
1 edited

Legend:

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

    r392 r396  
    2020public: 
    2121        BspNodeGeometry() 
    22         {}; 
    23  
    24         BspNodeGeometry(const PolygonContainer &polys,  
    25                                         const vector<Plane3> &planes,  
    26                                         const vector<bool> &sides); 
    27         BspNodeGeometry(const vector<Plane3> &planes,  
    28                                         const vector<bool> &sides);         
     22        {};   
    2923 
    3024        ~BspNodeGeometry(); 
     
    3428        /** Computes new cell based on the old cell definition and a new split plane 
    3529                @param side indicates which side of the halfspace  
    36                 @returns true if plane contributes to the cell. 
    37         */ 
    38         BspNodeGeometry *ConstructChild(const BspTree &tree, 
    39                                                                         const Plane3 &splitPlane, 
    40                                                                         const bool side) const; 
    41  
    42         vector<Plane3> mPlanes; 
    43         vector<bool> mSides; 
     30        */ 
     31        void SplitGeometry(BspNodeGeometry &front,  
     32                                           BspNodeGeometry &back, 
     33                                           const BspTree &tree, 
     34                                           const Plane3 &splitPlane) const; 
     35 
     36        Polygon3 *SplitPolygon(Polygon3 *poly, const BspTree &tree) const; 
     37 
    4438        PolygonContainer mPolys; 
    4539}; 
     
    732726        /** Extracts the split planes representing the space bounded by node n. 
    733727        */ 
    734         void ExtractSplitPlanes(BspNode *n, vector<Plane3> &planes, vector<bool> &sides) const; 
     728        void ExtractHalfSpaces(BspNode *n, vector<Plane3> &halfSpaces) const; 
    735729 
    736730        /** Computes the pvs of the front and back leaf with a given classification. 
Note: See TracChangeset for help on using the changeset viewer.