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;
95 std::istream & ele_stream);
104 void node_in (std::istream & node_stream);
This is the MeshBase class.
This class defines an abstract interface for Mesh output.
This class implements reading and writing meshes in the TetGen format.
dof_id_type _num_nodes
total number of nodes.
dof_id_type _num_elements
total number of elements.
std::vector< std::vector< Real > > node_attributes
Data structure to hold node attributes read in from file.
virtual void write(const std::string &) override
This method implements writing a mesh to a specified ".poly" file.
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.
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...
std::map< dof_id_type, dof_id_type > _assign_nodes
stores new positions 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.
virtual void read(const std::string &) override
This method implements reading a mesh from a specified file in TetGen format.
The libMesh namespace provides an interface to certain functionality in the library.