- Timestamp:
- 07/06/06 12:39:55 (18 years ago)
- Location:
- GTP/trunk/Lib/Geom/shared/GTGeometry
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Geom/shared/GTGeometry/src/GeoLodStripsLibrary.cpp
r1083 r1087 396 396 397 397 // Copy strips. 398 dataRetrievalInterface=create_index_data_func(total_strip_size );398 dataRetrievalInterface=create_index_data_func(total_strip_size*2); // temporal! 399 399 dataRetrievalInterface->Begin(); 400 400 … … 620 620 target_submesh++; 621 621 } 622 623 int lastindex = -1; 622 624 for (SmallIntVector::iterator it=mStrips[i].begin(); it!=mStrips[i].end(); it++, ii++) 623 625 { 626 // repeat the first index of the strip: degenerate 627 if (lastindex==-1) 628 { 629 lastindex=*it; 630 dataRetrievalInterface->SetIndex(ii,*it); 631 counter++; 632 ii++; 633 } 634 lastindex=*it; 624 635 dataRetrievalInterface->SetIndex(ii,*it); 625 636 counter++; 626 637 } 638 639 // last repeat last vertex of the strip: degenerate 640 dataRetrievalInterface->SetIndex(ii,lastindex); 641 counter++; 642 ii++; 643 627 644 dataRetrievalInterface->SetNumValidIndices(ii); 628 645 }
Note: See TracChangeset
for help on using the changeset viewer.