#include <STLReader.hh>

Public Member Functions | |
| _STLReader_ () | |
| float | epsilon () const |
| Returns the threshold to be used for considering two point to be equal. | |
| std::string | get_description () const |
| Returns a brief description of the file type that can be parsed. | |
| std::string | get_extensions () const |
| bool | read (std::istream &_in, BaseImporter &_bi, Options &_opt) |
| bool | read (const std::string &_filename, BaseImporter &_bi, Options &_opt) |
| void | set_epsilon (float _eps) |
| virtual | ~_STLReader_ () |
| Destructor. | |
Private Types | |
| enum | STL_Type { STLA, STLB, NONE } |
Private Member Functions | |
| STL_Type | check_stl_type (const std::string &_filename) const |
| bool | read_stla (const std::string &_filename, BaseImporter &_bi) const |
| bool | read_stlb (const std::string &_filename, BaseImporter &_bi) const |
Private Attributes | |
| float | eps_ |
Implementation of the STL format reader. This class is singleton'ed by SingletonT to STLReader.
Definition at line 86 of file STLReader.hh.
enum OpenMesh::IO::_STLReader_::STL_Type [private] |
Definition at line 120 of file STLReader.hh.
| OpenMesh::IO::_STLReader_::_STLReader_ | ( | ) |
| virtual OpenMesh::IO::_STLReader_::~_STLReader_ | ( | ) | [inline, virtual] |
Destructor.
Definition at line 94 of file STLReader.hh.
| STL_Type OpenMesh::IO::_STLReader_::check_stl_type | ( | const std::string & | _filename | ) | const [private] |
| float OpenMesh::IO::_STLReader_::epsilon | ( | ) | const [inline] |
Returns the threshold to be used for considering two point to be equal.
Definition at line 114 of file STLReader.hh.
| std::string OpenMesh::IO::_STLReader_::get_description | ( | ) | const [inline, virtual] |
Returns a brief description of the file type that can be parsed.
Implements OpenMesh::IO::BaseReader.
Definition at line 97 of file STLReader.hh.
| std::string OpenMesh::IO::_STLReader_::get_extensions | ( | ) | const [inline, virtual] |
Returns a string with the accepted file extensions separated by a whitespace and in small caps.
Implements OpenMesh::IO::BaseReader.
Definition at line 99 of file STLReader.hh.
| bool OpenMesh::IO::_STLReader_::read | ( | std::istream & | _is, | |
| BaseImporter & | _bi, | |||
| Options & | _opt | |||
| ) | [virtual] |
Reads a mesh given by a std::stream. This method usually uses the same stream reading method that read uses. Options can be passed via _opt. After execution _opt contains the Options that were available
Implements OpenMesh::IO::BaseReader.
| bool OpenMesh::IO::_STLReader_::read | ( | const std::string & | _filename, | |
| BaseImporter & | _bi, | |||
| Options & | _opt | |||
| ) | [virtual] |
Reads a mesh given by a filename. Usually this method opens a stream and passes it to stream read method. Acceptance checks by filename extension can be placed here.
Options can be passed via _opt. After execution _opt contains the Options that were available
Implements OpenMesh::IO::BaseReader.
| bool OpenMesh::IO::_STLReader_::read_stla | ( | const std::string & | _filename, | |
| BaseImporter & | _bi | |||
| ) | const [private] |
| bool OpenMesh::IO::_STLReader_::read_stlb | ( | const std::string & | _filename, | |
| BaseImporter & | _bi | |||
| ) | const [private] |
| void OpenMesh::IO::_STLReader_::set_epsilon | ( | float | _eps | ) | [inline] |
Set the threshold to be used for considering two point to be equal. Can be used to merge small gaps
Definition at line 111 of file STLReader.hh.
float OpenMesh::IO::_STLReader_::eps_ [private] |
Definition at line 129 of file STLReader.hh.