GetFEM
5.4.3
|
Import mesh files from various formats. More...
Go to the source code of this file.
Namespaces | |
getfem | |
GEneric Tool for Finite Element Methods. | |
Functions | |
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 > ®ion_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. | |