Changeset 1018 for GTP/trunk/Lib/Geom/shared/GeoTool/src
- Timestamp:
- 06/16/06 10:49:49 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Geom/shared/GeoTool/src/GeoMeshView.cpp
r998 r1018 592 592 593 593 // For each strip. 594 for (int strip = 0; strip < lodStripsLib->GetStripCount(); strip++) 595 { 596 triangle_count += lodStripsLib->mStrips[strip].size() - 2; 594 // for (int strip = 0; strip < lodStripsLib->GetStripCount(); strip++) 595 MultiIndexData *dataInterface = lodStripsLib->dataRetrievalInterface; 596 for (int strip = 0; strip < dataInterface->GetNumPrims(); strip++) 597 { 598 // triangle_count += lodStripsLib->mStrips[strip].size() - 2; 599 triangle_count += dataInterface->GetNumValidIndices(strip) - 2; 597 600 } 598 601 … … 928 931 929 932 // For each index of the strip. 930 for (int index = 0; index < lodStripsLib->mStrips[current_strip].size(); index++) 933 // for (int index = 0; index < lodStripsLib->mStrips[current_strip].size(); index++) 934 for (int index = 0; index < lodStripsLib->dataRetrievalInterface->GetNumValidIndices(current_strip); index++) 931 935 { 932 position = lodStripsLib->mStrips[current_strip][index]; 936 // position = lodStripsLib->mStrips[current_strip][index]; 937 position = lodStripsLib->dataRetrievalInterface->GetIndex(current_strip,index); 933 938 934 939 // Gets the vertex normal. … … 1028 1033 1029 1034 // For each index of the strip. 1030 for (int index = 0; index < lodTreeLib->GetStrip(current_strip).size(); index++) 1035 // for (int index = 0; index < lodTreeLib->GetStrip(current_strip).size(); index++) 1036 for (int index = 0; index < lodTreeLib->CurrentLOD_Trunk_IndexCountByStrip(current_strip); index++) 1031 1037 { 1032 position = lodTreeLib->GetStrip(current_strip)[index]; 1038 // position = lodTreeLib->GetStrip(current_strip)[index]; 1039 position = lodTreeLib->CurrentLOD_Trunk_Indices()->GetIndex(current_strip,index); 1033 1040 1034 1041 // Gets the vertex normal.
Note: See TracChangeset
for help on using the changeset viewer.