Changeset 1098


Ignore:
Timestamp:
07/07/06 14:56:45 (18 years ago)
Author:
gumbau
Message:

Actualize LodStrips? Faces and scale bug fixed

Location:
GTP/trunk/Lib/Geom/shared
Files:
3 edited

Legend:

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

    r1083 r1098  
    13301330        geoMesh->mMeshBounds.scaleFactor                =       scale; 
    13311331 
     1332 
     1333        bool *sharedmesh; 
     1334        sharedmesh= new bool[geoMesh->mSubMeshCount]; 
     1335        bool firstsharedmesh= true; 
     1336        for (int submesh = 0; submesh < geoMesh->mSubMeshCount; submesh++) 
     1337        { 
     1338                if (geoMesh->mSubMesh[submesh].mSharedVertexBuffer) 
     1339                        sharedmesh[submesh]= true; 
     1340                else 
     1341                        sharedmesh[submesh]= false; 
     1342        } 
     1343 
    13321344        //      Translate around center then scale. 
    13331345        //      For each submesh. 
    13341346        for (int submesh = 0; submesh < geoMesh->mSubMeshCount; submesh++) 
    13351347        { 
     1348 
     1349                //      If is a shared vertex Buffer. 
     1350                if (geoMesh->mSubMesh[submesh].mSharedVertexBuffer) 
     1351                { 
     1352                        if (!firstsharedmesh) 
     1353                                continue; 
     1354                        else 
     1355                                firstsharedmesh= false; 
     1356                } 
     1357 
    13361358                //      Gets the actual submesh. 
    13371359                vertex_buffer   =       geoMesh->mSubMesh[submesh].mVertexBuffer; 
     
    13481370                } 
    13491371 
    1350                 //      If is a shared vertex Buffer. 
    1351                 if (geoMesh->mSubMesh[submesh].mSharedVertexBuffer) 
    1352                 { 
    1353                         break; 
    1354                 } 
    1355         } 
    1356  
     1372        } 
     1373 
     1374        delete[] sharedmesh; 
    13571375} 
    13581376 
  • GTP/trunk/Lib/Geom/shared/GeoTool/src/GeoMeshViewUI.cpp

    r1090 r1098  
    22872287 
    22882288        mStrips->label(strips_value); 
     2289         
     2290        mMainWindow->redraw(); 
    22892291} 
    22902292 
Note: See TracChangeset for help on using the changeset viewer.