Fix MED Reader

Assign same Mesh name into MED archive based on shortfilename during write and read operation
This commit is contained in:
vejmarie 2016-07-16 15:58:41 +02:00 committed by wmayer
parent 8051d32adc
commit da70ba1642
2 changed files with 2 additions and 2 deletions

View File

@ -110,7 +110,7 @@ Driver_Mesh::Status DriverMED_R_SMESHDS_Mesh::Perform()
#endif
myFamilies.clear();
if(MYDEBUG) MESSAGE("Perform - myFile : "<<myFile);
PWrapper aMed = CrWrapper(myFile,true);
PWrapper aMed = CrWrapper(myFile,false); // We are using the internal MED file version checker instead of an external reader
aResult = DRS_EMPTY;
TInt aNbMeshes = aMed->GetNbMeshes();

View File

@ -1172,7 +1172,7 @@ void FemMesh::write(const char *FileName) const
myMesh->ExportUNV(File.filePath().c_str());
}
else if (File.hasExtension("med") ) {
myMesh->ExportMED(File.filePath().c_str(),"FreeCADMesg",false,2); // 2 means MED_V2_2 version !
myMesh->ExportMED(File.filePath().c_str(),File.fileNamePure().c_str(),false,2); // 2 means MED_V2_2 version !
}
else if (File.hasExtension("stl") ) {
// read brep-file