- Timestamp:
- 06/09/06 08:24:19 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Geom/shared/GTGeometry/src/GeoLodStripsLibrary.cpp
r985 r1007 327 327 uint32 LodStripsLibrary::MaxVertices() 328 328 { 329 uint32 number_of_vertices; 330 331 number_of_vertices = mTotalVertices; 332 333 return number_of_vertices; 329 return mMaxVerticesLOD; 334 330 } 335 331 … … 340 336 341 337 // Total vertices less total lod. 342 number_of_vertices = m TotalVertices - (mMaxLod + 1);338 number_of_vertices = mMaxVerticesLOD - (mMinLod + 1); 343 339 344 340 return number_of_vertices; … … 394 390 void LodStripsLibrary::TrimByLod(uint32 minLod, uint32 maxLod) 395 391 { 392 // Refresh number of vercies of the max lod. 393 mMaxVerticesLOD += mMaxLod - maxLod; 394 396 395 mMinLod = minLod; 397 396 mMaxLod = maxLod; … … 621 620 // Max / Min values for LOD. 622 621 mLods = int(p_changes.size()); 623 mM inLod = 0;624 mM axLod = mLods;622 mMaxLod = 0; 623 mMinLod = mLods; 625 624 626 625 //// CHAPUZA PROVISIONAL: EL ULTIMO ELEMENTO SE REPITE 2 VECES V.v … … 632 631 } 633 632 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()); 637 637 638 638 //Copy the data to the structure we will use
Note: See TracChangeset
for help on using the changeset viewer.