Go to the documentation of this file.
17 #ifndef GZ_COMMON_STLLOADER_HH_
18 #define GZ_COMMON_STLLOADER_HH_
24 #include "gz/common/graphics/Export.hh"
26 #define LINE_MAX_LEN 256
27 #define COR3_MAX 200000
29 #define FACE_MAX 200000
53 private:
bool ReadAscii(FILE *_filein,
Mesh *_mesh);
59 private:
bool ReadBinary(FILE *_filein,
Mesh *_mesh);
65 private:
bool Leqi(
char* _string1,
char* _string2);
73 private:
int RcolFind(
float _a[][
COR3_MAX],
int _m,
int _n,
float _r[]);
78 private: uint32_t LongIntRead(FILE *_filein);
84 private:
bool ShortIntRead(FILE *_filein, uint16_t &_value);
90 private:
bool FloatRead(FILE *_filein,
double &_value);
Forward declarations for the common classes.
Class used to load STL mesh files.
Definition: gz/common/STLLoader.hh:37
#define COR3_MAX
Definition: gz/common/STLLoader.hh:27
Base class for loading meshes.
Definition: gz/common/MeshLoader.hh:32
A 3D mesh.
Definition: gz/common/Mesh.hh:41