Changeset 1026 for GTP/trunk/Lib/Geom/shared/GeoTool/src
- Timestamp:
- 06/20/06 13:30:48 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Geom/shared/GeoTool/src/GeoMeshViewUI.cpp
r1024 r1026 1002 1002 } 1003 1003 1004 VertexBuffer *origSubMeshVB=NULL; 1005 int orig_numindices=0; 1006 Index *orig_indices=NULL; 1007 1004 1008 //--------------------------------------------------------------------------- 1005 1009 // Button Process Callback … … 1014 1018 mProcessBar->position(0); 1015 1019 1020 origSubMeshVB=NULL; 1021 1016 1022 // Initialize error flag. 1017 1023 error = false; … … 1079 1085 else 1080 1086 { 1087 origSubMeshVB=mGeoMesh->mSubMesh[idMeshLeaves].mVertexBuffer->Clone(); 1088 orig_numindices=mGeoMesh->mSubMesh[idMeshLeaves].mIndexCount; 1089 orig_indices=new Index[orig_numindices]; 1090 for (int i=0; i<orig_numindices; i++) 1091 orig_indices[i]=mGeoMesh->mSubMesh[idMeshLeaves].mIndex[i]; 1092 1081 1093 std::cout << "Simplificando hojas..."; 1082 1094 simplifyLeavesCollapse(); … … 1323 1335 file_name[strlen(file_name) - 4] = '\0'; 1324 1336 1325 mesh_saver->save( mGeoMesh, 1326 strcat(file_name,".mesh")); 1337 mesh_saver->leavesSubMesh=idMeshLeaves; 1338 mesh_saver->leavesVB=origSubMeshVB; 1339 mesh_saver->numindices=orig_numindices; 1340 mesh_saver->indices=orig_indices; 1341 mesh_saver->save(mGeoMesh,strcat(file_name,".mesh")); 1327 1342 1328 1343 delete mesh_saver;
Note: See TracChangeset
for help on using the changeset viewer.