model.h 451 B

1234567891011121314151617181920212223
  1. #ifndef MODEL_H
  2. #define MODEL_H
  3. #include "mesh.h"
  4. #include "string"
  5. #include <matrix.h>
  6. class Model{
  7. public:
  8. Model(std::string path);
  9. void describeMesh();
  10. Mesh *getMesh();
  11. void initPosition(TransformParameters initPos);
  12. private:
  13. void buildMesh(std::string path);
  14. void loadVertices(std::ifstream &fileHandle);
  15. void loadFaces(std::ifstream &fileHandle);
  16. Mesh mMesh;
  17. };
  18. #endif