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;
119 public:
void FillArrays(
float **_vertArr,
int **_indArr)
const;
149 public:
void Scale(
double _factor);
156 private: std::string name;
159 private: std::string path;
162 private: std::vector<SubMesh *> submeshes;
165 private: std::vector<Material *> materials;
208 public:
void CopyVertices(
const std::vector<math::Vector3> &_verts);
212 public:
void CopyNormals(
const std::vector<math::Vector3> &_norms);
232 public:
void AddIndex(
unsigned int _i);
242 public:
void AddVertex(
double _x,
double _y,
double _z);
252 public:
void AddNormal(
double _x,
double _y,
double _z);
302 public:
unsigned int GetIndex(
unsigned int _i)
const;
349 public:
void FillArrays(
float **_vertArr,
int **_indArr)
const;
365 public:
void Scale(
double _factor);
372 private: std::vector< math::Vector3 > vertices;
375 private: std::vector< math::Vector3 > normals;
378 private: std::vector< math::Vector2d > texCoords;
381 private: std::vector<unsigned int> indices;
384 private: std::vector<NodeAssignment> nodeAssignments;
391 private:
int materialIndex;