17 #ifndef IGNITION_COMMON_STLLOADER_HH_ 18 #define IGNITION_COMMON_STLLOADER_HH_ 23 #include <ignition/utils/ImplPtr.hh> 26 #include "ignition/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 IGN_UTILS_IMPL_PTR(dataPtr)
Base class for loading meshes.
Definition: MeshLoader.hh:32
Class used to load STL mesh files.
Definition: STLLoader.hh:39
#define COR3_MAX
Definition: STLLoader.hh:29
Forward declarations for the common classes.
A 3D mesh.
Definition: Mesh.hh:41