Go to the documentation of this file.
17 #ifndef IGNITION_COMMON_STLLOADER_HH_
18 #define IGNITION_COMMON_STLLOADER_HH_
23 #include <ignition/utils/ImplPtr.hh>
25 #include <gz/common/config.hh>
27 #include "gz/common/graphics/Export.hh"
29 #define LINE_MAX_LEN 256
30 #define COR3_MAX 200000
32 #define FACE_MAX 200000
56 private:
bool ReadAscii(FILE *_filein,
Mesh *_mesh);
62 private:
bool ReadBinary(FILE *_filein,
Mesh *_mesh);
68 private:
bool Leqi(
char* _string1,
char* _string2);
76 private:
int RcolFind(
float _a[][
COR3_MAX],
int _m,
int _n,
float _r[]);
81 private: uint32_t LongIntRead(FILE *_filein);
87 private:
bool ShortIntRead(FILE *_filein, uint16_t &_value);
93 private:
bool FloatRead(FILE *_filein,
double &_value);
96 IGN_UTILS_IMPL_PTR(dataPtr)
Forward declarations for the common classes.
Class used to load STL mesh files.
Definition: gz/common/STLLoader.hh:40
#define COR3_MAX
Definition: gz/common/STLLoader.hh:30
Base class for loading meshes.
Definition: gz/common/MeshLoader.hh:33
A 3D mesh.
Definition: gz/common/Mesh.hh:42