#include <stl_parser.hpp>

Public Member Functions | |
| int8_t | read (std::vector< TriangleSupport > &tri_vec) |
| StlParser (const std::string &file_path) | |
| virtual | ~StlParser () |
Private Member Functions | |
| double | toDouble (char *facet, uint8_t start_idx) |
| fcl::Vec3f | toVec3f (char *facet) |
Definition at line 23 of file stl_parser.hpp.
| StlParser::StlParser | ( | const std::string & | file_path | ) | [inline] |
Definition at line 32 of file stl_parser.hpp.
| virtual StlParser::~StlParser | ( | ) | [inline, virtual] |
Definition at line 38 of file stl_parser.hpp.
| int8_t StlParser::read | ( | std::vector< TriangleSupport > & | tri_vec | ) | [virtual] |
Hard coded STL file parsing according to binary file specification in https://en.wikipedia.org/wiki/STL_%28file_format%29.
Implements ParserBase.
Definition at line 31 of file stl_parser.cpp.
| double StlParser::toDouble | ( | char * | facet, |
| uint8_t | start_idx | ||
| ) | [private] |
Conversion of a 32 bit binary value into double.
| facet | Current face / triangle. |
| start_idx | Index in binary face description. |
Definition at line 112 of file stl_parser.cpp.
| fcl::Vec3f StlParser::toVec3f | ( | char * | facet | ) | [private] |
Converter method from position in file to a 3d vector.
| facet | Pointer to the current face / triangle in file. |
Definition at line 96 of file stl_parser.cpp.