Skip to content

Commit

Permalink
Fix MED Reader
Browse files Browse the repository at this point in the history
Assign same Mesh name into MED archive based on shortfilename during write and read operation
  • Loading branch information
vejmarie authored and wwmayer committed Jul 16, 2016
1 parent 8051d32 commit da70ba1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Fem/App/FemMesh.cpp
Expand Up @@ -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
Expand Down

0 comments on commit da70ba1

Please sign in to comment.