meshImport3D.hh
Stores the nodes and edges of a cell to be created.
Definition: meshImport3D.hh:221
virtual Tetrahedron3d * cell(const std::vector< Real3d > &vertices) const
Creates and returns the cell.
std::unordered_map< Index, Quad *, std::hash< Index >, std::IndexEqual > quad_
List of quads.
Definition: meshImport3D.hh:171
Stores the nodes and faces of a hexahedral cell to be created.
Definition: meshImport3D.hh:273
Index(const uint n0, const uint n1, const uint n2)
Constructor for use in a triangle.
virtual ~NodeCell()
std::unordered_map< Index, Triangle *, std::hash< Index >, std::IndexEqual > tri_
List of triangles.
Definition: meshImport3D.hh:168
virtual Index faceIndex(const uint i)
Returns the indices of the nodes which define the face i.
virtual Index faceIndex(const uint i)
Returns the indices of the nodes which define the face i.
virtual Quad ** quad(const uint i)=0
Returns the face with index i.
virtual ~NodeTetrahedron()
virtual uint nofaces() const =0
Returns the number of faces.
void createEdge_(uint ix, uint iy, std::map< uint, std::map< uint, Edge * > > &edges, Attribute attr=0, Edge **e=0)
Creates the edge with vertices ix and iy using edges as repository.
void clear_(std::vector< NodeCell * > &cells) const
Deletes the content of cells.
virtual Cell3 * cell(const std::vector< Real3d > &vertices) const
Creates and returns the cell.
virtual Triangle ** triangle(const uint i)
Returns the face with index i.
Definition: meshImport3D.hh:291
virtual Cell3 * cell(const std::vector< Real3d > &vertices) const =0
Creates and returns the cell.
Import3dMesh(const std::string coord, const std::string elms, const std::string boundary, const uint idxStart=1, const bool leftHand=false, const uint elmtyp=0)
Constructor.
size_t operator()(const concepts::Index &x) const
Computes the hash function value for x.
Definition: meshImport3D.hh:64
virtual ~NodeHexahedron()
NodeHexahedron(const uint one, const uint two, const uint three, const uint four, const uint five, const uint six, const uint seven, const uint eight, const uint elmType=0)
Constructor.
uint readInts_(const std::string &i, std::vector< int > &v) const
Reads integers from the string.
virtual ~Import3dMesh()
Quad * createQuad_(const Index &I, std::map< uint, std::map< uint, Edge * > > &edges, Attribute attr=0)
Creates a quad.
An abstract class for scanning a mesh (a set of cells) or a space (a set of elements).
Definition: scannerConnectors.hh:29
Index(const uint n0)
Triangle * createTriangle_(const Index &I, std::map< uint, std::map< uint, Edge * > > &edges, Attribute attr=0)
Creates a triangle.
NodeTetrahedron(const uint one, const uint two, const uint three, const uint four, const bool leftHand=false)
Constructor.
virtual Triangle ** triangle(const uint i)
Returns the face with index i.
Definition: meshImport3D.hh:267
Definition: operations.hh:76
Index(const uint n0, const uint n1)
Index(const uint n0, const uint n1, const uint n2, const uint n3)
Constructor for use in a quad.
virtual Index faceIndex(const uint i)=0
Returns the indices of the nodes which define the face i.
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
Stores the nodes and faces of a tetrahedral cell to be created.
Definition: meshImport3D.hh:252
bool operator()(const concepts::Index &x, const concepts::Index &y) const
Definition: meshImport3D.hh:70
virtual Triangle ** triangle(const uint i)=0
Returns the face with index i.