52 #ifndef __STLREADER_HH__
53 #define __STLREADER_HH__
62 #include <OpenMesh/Core/System/config.h>
63 #include <OpenMesh/Core/Utils/SingletonT.hh>
64 #include <OpenMesh/Core/IO/reader/BaseReader.hh>
96 {
return "Stereolithography Interface Format"; }
99 bool read(
const std::string& _filename,
103 bool read(std::istream& _in,
118 enum STL_Type { STLA, STLB, NONE };
119 STL_Type check_stl_type(
const std::string& _filename)
const;
121 bool read_stla(
const std::string& _filename, BaseImporter& _bi, Options& _opt)
const;
122 bool read_stla(std::istream& _in, BaseImporter& _bi, Options& _opt)
const;
123 bool read_stlb(
const std::string& _filename, BaseImporter& _bi, Options& _opt)
const;
124 bool read_stlb(std::istream& _in, BaseImporter& _bi, Options& _opt)
const;
138 OPENMESHDLLEXPORT _STLReader_& STLReader();
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition: MeshItems.hh:59
_STLReader_ __STLReaderInstance
Declare the single entity of the STL reader.
Definition: STLReader.cc:79
Base class for importer modules.
Definition: BaseImporter.hh:84
Set options for reader/writer modules.
Definition: Options.hh:91
Base class for reader modules.
Definition: BaseReader.hh:87
Implementation of the STL format reader.
Definition: STLReader.hh:85
std::string get_description() const override
Returns a brief description of the file type that can be parsed.
Definition: STLReader.hh:95
std::string get_extensions() const override
Returns a string with the accepted file extensions separated by a whitespace and in small caps.
Definition: STLReader.hh:97
void set_epsilon(float _eps)
Set the threshold to be used for considering two point to be equal.
Definition: STLReader.hh:109
virtual ~_STLReader_()
Destructor.
Definition: STLReader.hh:92
float epsilon() const
Returns the threshold to be used for considering two point to be equal.
Definition: STLReader.hh:112