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);
152 private: std::string name;
155 private: std::string path;
158 private: std::vector<SubMesh *> submeshes;
161 private: std::vector<Material *> materials;
204 public:
void CopyVertices(
const std::vector<math::Vector3> &_verts);
208 public:
void CopyNormals(
const std::vector<math::Vector3> &_norms);
228 public:
void AddIndex(
unsigned int _i);
238 public:
void AddVertex(
double _x,
double _y,
double _z);
248 public:
void AddNormal(
double _x,
double _y,
double _z);
298 public:
unsigned int GetIndex(
unsigned int _i)
const;
345 public:
void FillArrays(
float **_vertArr,
int **_indArr)
const;
361 public:
void Scale(
double _factor);
364 private: std::vector< math::Vector3 > vertices;
367 private: std::vector< math::Vector3 > normals;
370 private: std::vector< math::Vector2d > texCoords;
373 private: std::vector<unsigned int> indices;
376 private: std::vector<NodeAssignment> nodeAssignments;
383 private:
int materialIndex;