44 public:
virtual ~Mesh();
48 public:
void SetPath(
const std::string &_path);
52 public: std::string
GetPath()
const;
56 public:
void SetName(
const std::string &_n);
60 public: std::string
GetName()
const;
118 public:
void FillArrays(
float **_vertArr,
int **_indArr)
const;
148 public:
void Scale(
double _factor);
151 private: std::string name;
154 private: std::string path;
157 private: std::vector<SubMesh *> submeshes;
160 private: std::vector<Material *> materials;
203 public:
void CopyVertices(
const std::vector<math::Vector3> &_verts);
207 public:
void CopyNormals(
const std::vector<math::Vector3> &_norms);
227 public:
void AddIndex(
unsigned int _i);
237 public:
void AddVertex(
double _x,
double _y,
double _z);
247 public:
void AddNormal(
double _x,
double _y,
double _z);
297 public:
unsigned int GetIndex(
unsigned int _i)
const;
344 public:
void FillArrays(
float **_vertArr,
int **_indArr)
const;
360 public:
void Scale(
double _factor);
363 private: std::vector< math::Vector3 > vertices;
366 private: std::vector< math::Vector3 > normals;
369 private: std::vector< math::Vector2d > texCoords;
372 private: std::vector<unsigned int> indices;
375 private: std::vector<NodeAssignment> nodeAssignments;
382 private:
int materialIndex;