50 #ifndef __STLREADER_HH__
51 #define __STLREADER_HH__
60 #include <OpenMesh/Core/System/config.h>
61 #include <OpenMesh/Core/Utils/SingletonT.hh>
62 #include <OpenMesh/Core/IO/reader/BaseReader.hh>
98 {
return "Stereolithography Interface Format"; }
101 bool read(
const std::string& _filename,
105 bool read(std::istream& _in,
120 enum STL_Type { STLA, STLB, NONE };
121 STL_Type check_stl_type(
const std::string& _filename)
const;
123 bool read_stla(
const std::string& _filename, BaseImporter& _bi, Options& _opt)
const;
124 bool read_stla(std::istream& _in, BaseImporter& _bi, Options& _opt)
const;
125 bool read_stlb(
const std::string& _filename, BaseImporter& _bi, Options& _opt)
const;
126 bool read_stlb(std::istream& _in, BaseImporter& _bi, Options& _opt)
const;
140 OPENMESHDLLEXPORT _STLReader_& STLReader();
float epsilon() const
Returns the threshold to be used for considering two point to be equal.
Definition: STLReader.hh:114
Base class for reader modules.
Definition: BaseReader.hh:86
Base class for importer modules.
Definition: BaseImporter.hh:81
virtual ~_STLReader_()
Destructor.
Definition: STLReader.hh:94
void set_epsilon(float _eps)
Set the threshold to be used for considering two point to be equal.
Definition: STLReader.hh:111
Set options for reader/writer modules.
Definition: Options.hh:88
std::string get_extensions() const
Returns a string with the accepted file extensions separated by a whitespace and in small caps...
Definition: STLReader.hh:99
_STLReader_ __STLReaderInstance
Declare the single entity of the STL reader.
Definition: STLReader.cc:72
Implementation of the STL format reader.
Definition: STLReader.hh:86
std::string get_description() const
Returns a brief description of the file type that can be parsed.
Definition: STLReader.hh:97