The current way to detect whether a STL mesh file is in ASCII or binary format is to check the first 5 bytes of the file. If those bytes are the ASCII codes of "solid", it is treated as ASCII format.
I need to convert one of this types to gmsh format which can be used by FiPy library in python, '".msh2" format'. I would be grateful if you could help me to solve this problem. The exported files are ...