- Timestamp:
- 07/07/06 14:56:45 (18 years ago)
- Location:
- GTP/trunk/Lib/Geom/shared
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Geom/shared/GTGeometry/src/GeoMeshLoader.cpp
r1083 r1098 1330 1330 geoMesh->mMeshBounds.scaleFactor = scale; 1331 1331 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 1332 1344 // Translate around center then scale. 1333 1345 // For each submesh. 1334 1346 for (int submesh = 0; submesh < geoMesh->mSubMeshCount; submesh++) 1335 1347 { 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 1336 1358 // Gets the actual submesh. 1337 1359 vertex_buffer = geoMesh->mSubMesh[submesh].mVertexBuffer; … … 1348 1370 } 1349 1371 1350 // If is a shared vertex Buffer. 1351 if (geoMesh->mSubMesh[submesh].mSharedVertexBuffer) 1352 { 1353 break; 1354 } 1355 } 1356 1372 } 1373 1374 delete[] sharedmesh; 1357 1375 } 1358 1376 -
GTP/trunk/Lib/Geom/shared/GeoTool/src/GeoMeshViewUI.cpp
r1090 r1098 2287 2287 2288 2288 mStrips->label(strips_value); 2289 2290 mMainWindow->redraw(); 2289 2291 } 2290 2292
Note: See TracChangeset
for help on using the changeset viewer.