20 #ifndef LIBMESH_STL_IO_H 21 #define LIBMESH_STL_IO_H 24 #include "libmesh/libmesh_common.h" 25 #include "libmesh/mesh_output.h" 26 #include "libmesh/mesh_input.h" 68 virtual void write (
const std::string &)
override;
73 virtual void read (
const std::string & mesh_file)
override;
79 virtual void read_ascii (std::istream & input);
89 std::size_t input_size = 0);
115 std::unique_ptr<std::istream>
open_file(
const std::string & filename);
128 #endif // LIBMESH_STL_IO_H ElemType
Defines an enum for geometric element types.
std::unique_ptr< std::istream > open_file(const std::string &filename)
Helper to open possibly-zipped files.
This class implements reading and writing triangle meshes in the STL format.
virtual void set_name(const std::string &name)
This method sets a name to write.
virtual void read(const std::string &mesh_file) override
This method implements reading a mesh from a specified file.
This class defines an abstract interface for Mesh output.
The libMesh namespace provides an interface to certain functionality in the library.
This is the MeshBase class.
virtual void read_ascii(std::istream &input)
This method implements reading a mesh from a specified ASCII input stream.
virtual void write(const std::string &) override
This method implements writing a mesh to a specified file.
bool _subdivide_second_order
Flag to subdivide second order elements.
bool subdivide_second_order()
Flag indicating whether or not to subdivide second order elements when writing.
virtual void read_binary(std::istream &input, std::size_t input_size=0)
This method implements reading a mesh from a specified binary input stream.
STLIO(const MeshBase &)
Constructor.
void set_subdivide_second_order(bool subdivide)
const std::string & name()
This method gets a name after a set or an ASCII read.
void ErrorVector unsigned int