support Gmsh v4.0 output format (requires patch in meshio)

This commit is contained in:
mbs 2024-08-01 10:29:35 +01:00
parent 066445b0e6
commit e09fddf752
2 changed files with 6 additions and 3 deletions

View File

@ -142,12 +142,13 @@ const QStringList& SMESHGUI_Meshio::GetExportFileFilter()
#endif
"FLAC3D (*.f3grid)",
"Gmsh 2.2 (*.msh)",
"Gmsh 4.0, and 4.1 (*.msh)",
"Gmsh 4.0 (*.msh)",
//"Gmsh 4.1 (*.msh)",
"H5M (*.h5m)",
"Kratos/MDPA (*.mdpa)",
"MED/Salome (*.med)",
"Medit (*.mesh *.meshb)",
"Nastran (*.bdf *fem *.nas)",
"Nastran (*.bdf *.fem *.nas)",
"Netgen(*.vol *.vol.gz)",
"OBJ (*.obj)",
"OFF (*.off)",

View File

@ -365,7 +365,9 @@ QString SMESH_Meshio::GetConvertOptArgs() const
return "-o ansys";
else if (mySelectedFilter.startsWith("Gmsh 2"))
return "-o gmsh22";
else if (mySelectedFilter.startsWith("Gmsh 4"))
else if (mySelectedFilter.startsWith("Gmsh 4.0"))
return "-o gmsh40";
else if (mySelectedFilter.startsWith("Gmsh 4.1"))
return "-o gmsh";
return {};