Ignore:
Timestamp:
01/25/06 01:44:46 (18 years ago)
Author:
mattausch
Message:

finished function for view cell construction
removed bsp rays from vspbspmanager

File:
1 edited

Legend:

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

    r573 r574  
    314314        Debug << "splitting polygons of node " << this << " with plane " << mPlane << endl; 
    315315#endif 
    316         while (!polys.empty()) 
    317         { 
    318                 Polygon3 *poly = polys.back(); 
    319                 polys.pop_back(); 
    320  
     316        PolygonContainer::const_iterator it, it_end = polys.end(); 
     317 
     318        for (it = polys.begin(); it != polys.end(); ++ it)       
     319        { 
     320                Polygon3 *poly = *it; 
     321         
    321322                //-- classify polygon 
    322323                const int cf = poly->ClassifyPlane(plane, mEpsilon); 
     
    25382539BspNodeGeometry::BspNodeGeometry(const BspNodeGeometry &rhs) 
    25392540{ 
     2541        mPolys.reserve(rhs.mPolys.size()); 
     2542         
    25402543        PolygonContainer::const_iterator it, it_end = rhs.mPolys.end(); 
    25412544        for (it = rhs.mPolys.begin(); it != it_end; ++ it) 
     
    25452548        } 
    25462549} 
     2550 
    25472551 
    25482552BspNodeGeometry::~BspNodeGeometry() 
     
    27002704} 
    27012705 
     2706 
    27022707Polygon3 *BspNodeGeometry::SplitPolygon(Polygon3 *planePoly, 
    27032708                                                                                const float epsilon) const 
Note: See TracChangeset for help on using the changeset viewer.