#ifndef MORPHMESH_H #define MORPHMESH_H #include #include #include #include /* Tim Redfern, March 2012 Loads meshes in Oak3D XML format Draws blended morph targets Multiple meshes are loaded as morph targets Coords are absolute */ class sequence { //stores a morph sequence: an animation cycle or transition public: sequence(); virtual ~sequence(); }; class morphmesh : public ofMesh { public: morphmesh(); morphmesh(string filename); virtual ~morphmesh(); bool loadMesh(string filename); bool isLoaded(); void draw(); void draw(int target); void draw(const vector& targets, const vector& weights); int getNumTargets(); protected: private: vector< vector > morphs; bool loaded; }; #endif // MORPHMESH_H