Changeset 393 for trunk/VUT


Ignore:
Timestamp:
11/09/05 02:24:23 (19 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r392 r393  
    24872487        } 
    24882488         
    2489         if (!planePoly) 
    2490         { 
    2491                 //geometry is not changed at all, hence just copy polygons 
    2492                 PolygonContainer::const_iterator it, it_end = mPolys.end(); 
    2493  
    2494                 for (it = mPolys.begin(); it != it_end; ++ it) 
    2495                         childCell->mPolys.push_back(new Polygon3((*it)->mVertices)); 
    2496                  
    2497                 return childCell; 
    2498         } 
    2499  
    25002489        //-- plane poly splits all other cell polygons 
    25012490        for (int i = 0; i < (int)mPolys.size(); ++ i) 
     
    25542543 
    25552544        //-- finally add the new polygon 
    2556         childCell->mPolys.push_back(planePoly); 
    2557         childCell->mPlanes.push_back(splitPlane); 
    2558         childCell->mSides.push_back(side); 
     2545        if (planePoly) 
     2546        { 
     2547                childCell->mPolys.push_back(planePoly); 
     2548                childCell->mPlanes.push_back(splitPlane); 
     2549                childCell->mSides.push_back(side); 
     2550        } 
    25592551 
    25602552        Debug << "returning new geometry " << mPolys.size() << " CHILD: " << childCell->mPolys.size() << endl; 
Note: See TracChangeset for help on using the changeset viewer.