Changeset 574 for trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellBsp.cpp
- Timestamp:
- 01/25/06 01:44:46 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellBsp.cpp
r573 r574 314 314 Debug << "splitting polygons of node " << this << " with plane " << mPlane << endl; 315 315 #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 321 322 //-- classify polygon 322 323 const int cf = poly->ClassifyPlane(plane, mEpsilon); … … 2538 2539 BspNodeGeometry::BspNodeGeometry(const BspNodeGeometry &rhs) 2539 2540 { 2541 mPolys.reserve(rhs.mPolys.size()); 2542 2540 2543 PolygonContainer::const_iterator it, it_end = rhs.mPolys.end(); 2541 2544 for (it = rhs.mPolys.begin(); it != it_end; ++ it) … … 2545 2548 } 2546 2549 } 2550 2547 2551 2548 2552 BspNodeGeometry::~BspNodeGeometry() … … 2700 2704 } 2701 2705 2706 2702 2707 Polygon3 *BspNodeGeometry::SplitPolygon(Polygon3 *planePoly, 2703 2708 const float epsilon) const
Note: See TracChangeset
for help on using the changeset viewer.