GetFEM  5.4.2
getfem_import.h File Reference

Import mesh files from various formats. More...

#include <string>
#include <iostream>
#include <map>
#include <set>
#include "bgeot_config.h"

Go to the source code of this file.


 GEneric Tool for Finite Element Methods.


void getfem::import_mesh (const std::string &filename, const std::string &format, mesh &m)
 imports a mesh file. More...
void getfem::import_mesh_gmsh (const std::string &filename, mesh &m, std::map< std::string, size_type > &region_map, bool remove_last_dimension=true, std::map< size_type, std::set< size_type >> *nodal_map=NULL, bool remove_duplicated_nodes=true)
 Import a mesh file in format generated by Gmsh. More...
void getfem::maybe_remove_last_dimension (mesh &msh)
 for gmsh and gid meshes, the mesh nodes are always 3D, so for a 2D mesh the z-component of nodes should be removed
std::map< std::string, size_type > getfem::read_region_names_from_gmsh_mesh_file (std::istream &f)
 for gmsh meshes, create table linking region name to region_id.

Detailed Description

Import mesh files from various formats.

Julien Pommier
Januar 17, 2003.

Definition in file getfem_import.h.