17 #ifndef _STLLOADER_HH_
18 #define _STLLOADER_HH_
26 #define LINE_MAX_LEN 256
27 #define COR3_MAX 200000
29 #define FACE_MAX 200000
50 public:
virtual Mesh *Load(
const std::string &_filename);
56 private:
bool ReadAscii(FILE *_filein,
Mesh *_mesh);
62 private:
bool ReadBinary(FILE *_filein,
Mesh *_mesh);
68 private:
bool Leqi(
char* _string1,
char* _string2);
76 private:
int RcolFind(
float _a[][
COR3_MAX],
int _m,
int _n,
float _r[]);
81 private: uint32_t LongIntRead(FILE *_filein);
87 private:
bool ShortIntRead(FILE *_filein, uint16_t &_value);
93 private:
bool FloatRead(FILE *_filein,
double &_value);
A 3D mesh.
Definition: Mesh.hh:40
Base class for loading meshes.
Definition: MeshLoader.hh:36
#define COR3_MAX
Definition: STLLoader.hh:27
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48
Class used to load STL mesh files.
Definition: STLLoader.hh:40