Go to the documentation of this file.
20 #ifndef LIBMESH_TETGEN_IO_H
21 #define LIBMESH_TETGEN_IO_H
24 #include "libmesh/libmesh_common.h"
25 #include "libmesh/mesh_input.h"
26 #include "libmesh/mesh_output.h"
70 virtual void read (
const std::string &)
override;
76 virtual void write (
const std::string &)
override;
108 std::istream & ele_stream);
117 void node_in (std::istream & node_stream);
169 #endif // LIBMESH_TETGEN_IO_H
The libMesh namespace provides an interface to certain functionality in the library.
virtual void read(const std::string &) override
This method implements reading a mesh from a specified file in TetGen format.
std::vector< std::vector< Real > > element_attributes
Data structure to hold element attributes read in from file.
virtual void write(const std::string &) override
This method implements writing a mesh to a specified ".poly" file.
std::vector< std::vector< Real > > node_attributes
Data structure to hold node attributes read in from file.
This is the MeshBase class.
std::map< dof_id_type, dof_id_type > _assign_nodes
stores new positions of nodes.
TetGenIO(MeshBase &mesh)
Constructor.
void element_in(std::istream &ele_stream)
Method reads elements and stores them in vector<Elem *> elements in the same order as they come in.
This class defines an abstract interface for Mesh output.
void node_in(std::istream &node_stream)
Method reads nodes from node_stream and stores them in vector<Node *> nodes in the order they come in...
dof_id_type _num_nodes
total number of nodes.
void read_nodes_and_elem(std::istream &node_stream, std::istream &ele_stream)
Reads a mesh (nodes & elements) from the file provided through node_stream and ele_stream.
dof_id_type _num_elements
total number of elements.
This class implements reading and writing meshes in the TetGen format.