#ifndef MYSIMPLEMESH_H #define MYSIMPLEMESH_H #include #include struct MyVertex { float x; float y; float z; }; typedef std::list MyFace; // MySimpleMesh class. class MySimpleMesh { public: MySimpleMesh(); ~MySimpleMesh(); void addVertex(float x, float y, float z); void addFace(const std::list &indexes); void print() const; inline std::vector &getVertexArray() {return _vertexArray;}; inline std::vector &getIndexArray() {return _indexArray;}; private: std::vector _vertexArray; std::vector _indexArray; }; #endif