Importing a `.mesh` file (Gamma Mesh Format)
I tried opening an ASCII
mesh file in the Gamma Mesh Format, and I ran into
Error : Medit mesh import only available for ASCII files
Here is a MWE of a .mesh
file that errors:
MeshVersionFormatted 3
Dimension
3
Vertices
3
0.0 0.0 0.0 1
1.0 0.0 0.0 1
0.0 1.0 0.0 1
Triangles
1
1 2 3 1
End
The issue seems to come from how the .mesh
file is parsed in geo/GModelIO_MESH.cpp
file. In particular, line 48
checks for a format not matching 3
, but AFAIU that number is simply a format version. Is there any reason why the version number should be 3 (and if so, perhaps the error message can be improved?).
Thanks.
Edited by Luiz