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);
void ErrorVector unsigned int
This is the MeshBase class.
This class defines an abstract interface for Mesh output.
This class implements reading and writing triangle meshes in the STL format.
bool _subdivide_second_order
Flag to subdivide second order elements.
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.
virtual void write(const std::string &) override
This method implements writing a mesh to a specified file.
std::unique_ptr< std::istream > open_file(const std::string &filename)
Helper to open possibly-zipped files.
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.
virtual void read_ascii(std::istream &input)
This method implements reading a mesh from a specified ASCII input stream.
const std::string & name()
This method gets a name after a set or an ASCII read.
bool subdivide_second_order()
Flag indicating whether or not to subdivide second order elements when writing.
void set_subdivide_second_order(bool subdivide)
The libMesh namespace provides an interface to certain functionality in the library.
ElemType
Defines an enum for geometric element types.