Ignore:
Timestamp:
09/12/08 18:07:04 (16 years ago)
Author:
mattausch
Message:

totally broken

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Polyhedron.cpp

    r2931 r2936  
    275275        } 
    276276 
    277         // add the new polygon to the polyhedron 
    278         clippedPolyhedron->Add(planePoly); 
    279  
    280  
    281277 
    282278        ///////////// 
    283279        //-- clip polyhedron: plane splits all polygons 
    284280 
    285         for (int i = 0; i < (int)mPolygons.size(); ++ i) 
     281        for (size_t i = 0; i < mPolygons.size(); ++ i) 
    286282        { 
    287283                Polygon3 *poly = mPolygons[i]; 
     
    320316                } 
    321317        } 
     318 
     319        // we can now savely add the new polygon 
     320        clippedPolyhedron->Add(planePoly); 
    322321 
    323322        return clippedPolyhedron; 
Note: See TracChangeset for help on using the changeset viewer.