Ignore:
Timestamp:
05/23/08 15:39:19 (16 years ago)
Author:
bittner
Message:

havran ray caster bug fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/havran/ktbs.cpp

    r2686 r2701  
    11671167    int axis = d->axis; 
    11681168    AxisAlignedBox3 obox; 
    1169     for (ObjectContainer::iterator it = d->objlist->begin(); it != endit; it++) { 
     1169    for (ObjectContainer::iterator it = d->objlist->begin(); it != endit; ) { 
    11701170      Intersectable *obj = *it; 
    11711171      obox = obj->GetBox(); 
     
    11791179        // we simply shorten the list - this object belongs only to the right list 
    11801180        (*it) = *(endit-1); 
    1181         it--; 
    11821181        endit--; 
     1182        continue; 
    11831183      } 
    11841184      else { 
     
    11871187        d->tightbox.Include(obox); 
    11881188      } 
     1189          it++; 
    11891190    } // for 
    11901191  } 
Note: See TracChangeset for help on using the changeset viewer.