17 #ifndef _STLLOADER_HH_
18 #define _STLLOADER_HH_
25 #define LINE_MAX_LEN 256
26 #define COR3_MAX 200000
28 #define FACE_MAX 200000
49 public:
virtual Mesh *
Load(
const std::string &_filename);
55 private:
bool ReadAscii(FILE *_filein,
Mesh *_mesh);
61 private:
bool ReadBinary(FILE *_filein,
Mesh *_mesh);
67 private:
bool Leqi(
char* _string1,
char* _string2);
75 private:
int RcolFind(
float _a[][
COR3_MAX],
int _m,
int _n,
float _r[]);
80 private: uint32_t LongIntRead(FILE *_filein);
86 private:
bool ShortIntRead(FILE *_filein, uint16_t &_value);
92 private:
bool FloatRead(FILE *_filein,
double &_value);