Fix MED Reader
Assign same Mesh name into MED archive based on shortfilename during write and read operation
This commit is contained in:
parent
8051d32adc
commit
da70ba1642
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user