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 #endif
"FLAC3D (*.f3grid)", "FLAC3D (*.f3grid)",
"Gmsh 2.2 (*.msh)", "Gmsh 2.2 (*.msh)",
"Gmsh 4.0, and 4.1 (*.msh)", "Gmsh 4.0 (*.msh)",
//"Gmsh 4.1 (*.msh)",
"H5M (*.h5m)", "H5M (*.h5m)",
"Kratos/MDPA (*.mdpa)", "Kratos/MDPA (*.mdpa)",
"MED/Salome (*.med)", "MED/Salome (*.med)",
"Medit (*.mesh *.meshb)", "Medit (*.mesh *.meshb)",
"Nastran (*.bdf *fem *.nas)", "Nastran (*.bdf *.fem *.nas)",
"Netgen(*.vol *.vol.gz)", "Netgen(*.vol *.vol.gz)",
"OBJ (*.obj)", "OBJ (*.obj)",
"OFF (*.off)", "OFF (*.off)",

View File

@ -365,7 +365,9 @@ QString SMESH_Meshio::GetConvertOptArgs() const
return "-o ansys"; return "-o ansys";
else if (mySelectedFilter.startsWith("Gmsh 2")) else if (mySelectedFilter.startsWith("Gmsh 2"))
return "-o gmsh22"; 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 "-o gmsh";
return {}; return {};