45 public:
virtual ~Mesh();
49 public:
void SetPath(
const std::string &_path);
53 public: std::string
GetPath()
const;
57 public:
void SetName(
const std::string &_n);
61 public: std::string
GetName()
const;
124 public:
void FillArrays(
float **_vertArr,
int **_indArr)
const;
154 public:
void Scale(
double _factor);
170 private: std::string name;
173 private: std::string path;
176 private: std::vector<SubMesh *> submeshes;
179 private: std::vector<Material *> materials;
217 public:
void SetName(
const std::string &_n);
221 public: std::string
GetName()
const;
233 public:
void CopyVertices(
const std::vector<math::Vector3> &_verts);
237 public:
void CopyNormals(
const std::vector<math::Vector3> &_norms);
257 public:
void AddIndex(
unsigned int _i);
267 public:
void AddVertex(
double _x,
double _y,
double _z);
277 public:
void AddNormal(
double _x,
double _y,
double _z);
327 public:
unsigned int GetIndex(
unsigned int _i)
const;
374 public:
void FillArrays(
float **_vertArr,
int **_indArr)
const;
390 public:
void Scale(
double _factor);
406 private: std::vector< math::Vector3 > vertices;
409 private: std::vector< math::Vector3 > normals;
412 private: std::vector< math::Vector2d > texCoords;
415 private: std::vector<unsigned int> indices;
418 private: std::vector<NodeAssignment> nodeAssignments;
425 private:
int materialIndex;
428 private: std::string name;