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