Ignore:
Timestamp:
09/09/05 15:03:48 (19 years ago)
Author:
mattausch
Message:

debugged bsp

File:
1 edited

Legend:

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

    r261 r262  
    1212Polygon3::Polygon3(Face *face, Mesh *parent) 
    1313{ 
    14         VertexIndexContainer::const_iterator it; 
     14        VertexIndexContainer::reverse_iterator it = face->mVertexIndices.rbegin(); 
    1515 
    16         for (it = face->mVertexIndices.begin(); it != face->mVertexIndices.end(); ++ it) 
     16        for (; it != face->mVertexIndices.rend();  ++it) 
    1717        { 
    1818                mVertices.push_back(parent->mVertices[*it]); 
    1919                mMaterial = parent->mMaterial; 
    2020                 
    21                 Debug << parent->mVertices[*it] << endl; 
     21                //Debug << parent->mVertices[*it] << endl; 
    2222        } 
    2323} 
     
    3131#endif 
    3232        return Plane3(mVertices[0], mVertices[1], mVertices[2]); 
    33 } 
    34  
    35 void Polygon3::DeletePolygons(PolygonContainer *polys) 
    36 { 
    37         while(!polys->empty()) 
    38         { 
    39                 DEL_PTR(polys->back()); 
    40                 polys->pop_back(); 
    41         } 
    4233} 
    4334 
Note: See TracChangeset for help on using the changeset viewer.