Ignore:
Timestamp:
06/16/06 10:49:49 (18 years ago)
Author:
gumbau
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Geom/shared/GeoTool/src/GeoMeshView.cpp

    r998 r1018  
    592592                 
    593593        //      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; 
    597600        } 
    598601 
     
    928931 
    929932                        //      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++) 
    931935                        { 
    932                                 position        =       lodStripsLib->mStrips[current_strip][index]; 
     936//                              position        =       lodStripsLib->mStrips[current_strip][index]; 
     937                                position        =       lodStripsLib->dataRetrievalInterface->GetIndex(current_strip,index); 
    933938 
    934939                                //      Gets the vertex normal. 
     
    10281033 
    10291034                        //      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++) 
    10311037                        { 
    1032                                 position        =       lodTreeLib->GetStrip(current_strip)[index]; 
     1038//                              position        =       lodTreeLib->GetStrip(current_strip)[index]; 
     1039                                position = lodTreeLib->CurrentLOD_Trunk_Indices()->GetIndex(current_strip,index); 
    10331040 
    10341041                                //      Gets the vertex normal. 
Note: See TracChangeset for help on using the changeset viewer.