17 #ifndef IGNITION_COMMON_STLLOADER_HH_
18 #define IGNITION_COMMON_STLLOADER_HH_
24 #include "ignition/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);
#define COR3_MAX
Definition: STLLoader.hh:27
Base class for loading meshes.
Definition: MeshLoader.hh:33
A 3D mesh.
Definition: Mesh.hh:42
Class used to load STL mesh files.
Definition: STLLoader.hh:38
virtual Mesh * Load(const std::string &_filename)
Creates a new mesh and loads the data from a file.
virtual ~STLLoader()
Destructor.
Forward declarations for the common classes.