57 #ifndef __STLREADER_HH__
58 #define __STLREADER_HH__
68 #include <OpenMesh/Core/Utils/SingletonT.hh>
69 #include <OpenMesh/Core/IO/reader/BaseReader.hh>
101 {
return "Stereolithography Interface Format"; }
104 bool read(
const std::string& _filename,
108 bool read(std::istream& _in,
123 enum STL_Type { STLA, STLB, NONE };
124 STL_Type check_stl_type(
const std::string& _filename)
const;
126 bool read_stla(
const std::string& _filename,
BaseImporter& _bi, Options& _opt)
const;
127 bool read_stla(std::istream& _in,
BaseImporter& _bi, Options& _opt)
const;
128 bool read_stlb(
const std::string& _filename,
BaseImporter& _bi, Options& _opt)
const;
129 bool read_stlb(std::istream& _in,
BaseImporter& _bi, Options& _opt)
const;
143 OPENMESHDLLEXPORT _STLReader_& STLReader();
void set_epsilon(float _eps)
Set options for reader/writer modules.
_STLReader_ __STLReaderInstance
Declare the single entity of the STL reader.
std::string get_extensions() const
std::string get_description() const
Returns a brief description of the file type that can be parsed.
float epsilon() const
Returns the threshold to be used for considering two point to be equal.
virtual ~_STLReader_()
Destructor.