Changeset 2701 for GTP/trunk/Lib/Vis/Preprocessing/src/havran
- Timestamp:
- 05/23/08 15:39:19 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/havran/ktbs.cpp
r2686 r2701 1167 1167 int axis = d->axis; 1168 1168 AxisAlignedBox3 obox; 1169 for (ObjectContainer::iterator it = d->objlist->begin(); it != endit; it++) {1169 for (ObjectContainer::iterator it = d->objlist->begin(); it != endit; ) { 1170 1170 Intersectable *obj = *it; 1171 1171 obox = obj->GetBox(); … … 1179 1179 // we simply shorten the list - this object belongs only to the right list 1180 1180 (*it) = *(endit-1); 1181 it--;1182 1181 endit--; 1182 continue; 1183 1183 } 1184 1184 else { … … 1187 1187 d->tightbox.Include(obox); 1188 1188 } 1189 it++; 1189 1190 } // for 1190 1191 }
Note: See TracChangeset
for help on using the changeset viewer.