Ignore:
Timestamp:
06/09/06 08:24:19 (18 years ago)
Author:
gumbau
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Geom/shared/GTGeometry/src/GeoLodStripsLibrary.cpp

    r985 r1007  
    327327uint32  LodStripsLibrary::MaxVertices() 
    328328{ 
    329         uint32  number_of_vertices; 
    330  
    331         number_of_vertices      =       mTotalVertices; 
    332  
    333         return  number_of_vertices; 
     329        return  mMaxVerticesLOD; 
    334330} 
    335331 
     
    340336 
    341337        //      Total vertices less total lod. 
    342         number_of_vertices      =       mTotalVertices - (mMaxLod + 1); 
     338        number_of_vertices      =       mMaxVerticesLOD - (mMinLod + 1); 
    343339 
    344340        return  number_of_vertices; 
     
    394390void            LodStripsLibrary::TrimByLod(uint32 minLod, uint32 maxLod) 
    395391{ 
     392        //      Refresh number of vercies of the max lod. 
     393        mMaxVerticesLOD +=      mMaxLod - maxLod; 
     394         
    396395        mMinLod =       minLod; 
    397396        mMaxLod =       maxLod; 
     
    621620                //      Max / Min values for LOD. 
    622621                mLods                                                                                   =       int(p_changes.size()); 
    623                 mMinLod                                                                         =       0; 
    624                 mMaxLod                                                                         =       mLods; 
     622                mMaxLod                                                                         =       0; 
     623                mMinLod                                                                         =       mLods; 
    625624 
    626625                //// CHAPUZA PROVISIONAL: EL ULTIMO ELEMENTO SE REPITE 2 VECES V.v 
     
    632631                } 
    633632 
    634                 mTotalVertices                  =       int(mFileVertices.size()); 
    635                 mTotalStrips                            =       int(mFileStrips.size()); 
    636                 mTotalChanges                           =       int(mFileChangesLOD.size()); 
     633                mTotalVertices          =       int(mFileVertices.size()); 
     634                mMaxVerticesLOD         =       mTotalVertices; 
     635                mTotalStrips                    =       int(mFileStrips.size()); 
     636                mTotalChanges                   =       int(mFileChangesLOD.size()); 
    637637 
    638638                //Copy the data to the structure we will use 
Note: See TracChangeset for help on using the changeset viewer.