meshImport3Dgmsh.hh

Go to the documentation of this file.
1 
9 #ifndef MESHIMPORT3DGMSH_HH
10 #define MESHIMPORT3DGMSH_HH
11 
12 #include "basics.hh"
13 #include "geometry.hh"
14 
15 namespace concepts {
16 
37 class Import3DMeshGmsh : public Mesh3 {
38 public:
44  Import3DMeshGmsh(const std::string& filename);
45 
46  virtual ~Import3DMeshGmsh();
47 
48  unsigned int ncell() const {
49  return cell_.size();
50  }
51 
53  return new concepts::PStlVectorScan<concepts::Cell3> (cell_.begin(), cell_.end());
54  }
55 
56  virtual std::ostream& info(std::ostream& os) const;
57 
58 private:
65 
66 };
67 
68 }
69 
70 #endif /* MESHIMPORT3DGMSH_HH */
71 
A scanner for a 3D mesh.
Definition: mesh.hh:52
Import3DMeshGmsh(const std::string &filename)
Constructor.
An abstract class for 3D meshes.
Definition: mesh.hh:112
unsigned int ncell() const
Returns the number of cells in the mesh.
concepts::Sequence< concepts::Vertex * > vtx_
Scanner for a STL container std::vector of pointers.
Sequence with operations, output operator, and method of the particular element types.
Definition: sequence.hh:39
concepts::Sequence< concepts::Cell3 * > cell_
concepts::Sequence< concepts::Edge * > edg_
concepts::Sequence< concepts::Quad * > quad_
Imports a 3D mesh consisting only of hexahedrons from created with the mesh generator gmsh.
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
concepts::Sequence< concepts::Real3d > coord_
concepts::Sequence< concepts::Hexahedron * > hex_
Basic namespace for Concepts-2.
Definition: pml_formula.h:16
concepts::Scan3 * scan()
Returns a scanner over the cells of the mesh.
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich