17 #ifndef GZ_COMMON_STLLOADER_HH_
18 #define GZ_COMMON_STLLOADER_HH_
23 #include <gz/utils/ImplPtr.hh>
26 #include "gz/common/graphics/Export.hh"
28 #define LINE_MAX_LEN 256
29 #define COR3_MAX 200000
31 #define FACE_MAX 200000
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);
95 GZ_UTILS_IMPL_PTR(dataPtr)