Raw File
GmshReader.h
/**
 *
 * \copyright
 * Copyright (c) 2012-2021, OpenGeoSys Community (http://www.opengeosys.org)
 *            Distributed under a Modified BSD License.
 *              See accompanying file LICENSE.txt or
 *              http://www.opengeosys.org/project/license
 */

#include <string>

namespace MeshLib
{
class Mesh;
}

namespace FileIO
{
namespace GMSH
{

/**
 * checks if there is a GMSH mesh file header
 * @param fname the file name of the mesh (including the path)
 * @return true, if the file seems to be a valid GMSH file, else false
 */
bool isGMSHMeshFile(const std::string& fname);

/**
 * reads a mesh created by GMSH - this implementation is based on the former
 * function GMSH2MSH
 * @param fname the file name of the mesh (including the path)
 * @return
 */
MeshLib::Mesh* readGMSHMesh(std::string const& fname);

} // end namespace GMSH
} // end namespace FileIO
back to top