nschloe / meshio

:spider_web: input/output for many mesh formats
MIT License
1.93k stars 397 forks source link

Does Meshio support unv file format (Could not deduce file format from path)? #1475

Open alisheikholeslam opened 3 months ago

alisheikholeslam commented 3 months ago

I need to convert a unv mesh file to another format. I have Installed the latest version of meshio (ver. 5.3.5) on python ver. 10, with the latest update of h5py. I have tried to read this mesh file by mesh = meshio.read(str(os.path.join(os.environ['USERPROFILE'], "Desktop", "Mesh.unv"))) but it gets the following error:

Traceback (most recent call last):
  File "C:\Users\Ali\Desktop\Mesh convertion.py", line 8, in <module>
    mesh = meshio.read(str(os.path.join(os.environ['USERPROFILE'], "Desktop", "Mesh.unv")))
  File "C:\Users\Ali\anaconda3\envs\Py_10\lib\site-packages\meshio\_helpers.py", line 71, in read
    return _read_file(Path(filename), file_format)
  File "C:\Users\Ali\anaconda3\envs\Py_10\lib\site-packages\meshio\_helpers.py", line 96, in _read_file
    possible_file_formats = _filetypes_from_path(path)
  File "C:\Users\Ali\anaconda3\envs\Py_10\lib\site-packages\meshio\_helpers.py", line 56, in _filetypes_from_path
    raise ReadError(f"Could not deduce file format from path '{path}'.")
meshio._exceptions.ReadError: Could not deduce file format from path 'C:\Users\Ali\Desktop\Mesh.unv'.

Does it still not support unv file extension? The example file: Mesh.zip