52 #ifndef __STLWRITER_HH__
53 #define __STLWRITER_HH__
62 #include <OpenMesh/Core/System/config.h>
63 #include <OpenMesh/Core/Utils/SingletonT.hh>
64 #include <OpenMesh/Core/IO/exporter/BaseExporter.hh>
65 #include <OpenMesh/Core/IO/writer/BaseWriter.hh>
91 std::string
get_description()
const override {
return "Stereolithography Format"; }
94 bool write(
const std::string&,
BaseExporter&,
Options, std::streamsize _precision = 6)
const override;
96 bool write(std::ostream&,
BaseExporter&,
Options, std::streamsize _precision = 6)
const override;
102 bool write_stla(std::ostream&,
BaseExporter&,
Options, std::streamsize _precision = 6)
const;
104 bool write_stlb(std::ostream&,
BaseExporter&,
Options, std::streamsize _precision = 6)
const;
112 extern _STLWriter_ __STLWriterInstance;
113 OPENMESHDLLEXPORT _STLWriter_& STLWriter();
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition: MeshItems.hh:59
size_t binary_size(const Mesh &_mesh, const std::string &_ext, Options _opt=Options::Default)
Get binary size of data.
Definition: MeshIO.hh:251
Base class for exporter modules.
Definition: BaseExporter.hh:85
Set options for reader/writer modules.
Definition: Options.hh:91
Base class for all writer modules.
Definition: BaseWriter.hh:84
Implementation of the STL format writer.
Definition: STLWriter.hh:83
virtual ~_STLWriter_()
Destructor.
Definition: STLWriter.hh:89
std::string get_description() const override
Return short description of the supported file format.
Definition: STLWriter.hh:91
std::string get_extensions() const override
Return file format's extension.
Definition: STLWriter.hh:92