split gmsh reading and converting to generic mesh format