diff options
Diffstat (limited to 'morpher/src/morphmesh.h')
| -rw-r--r-- | morpher/src/morphmesh.h | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/morpher/src/morphmesh.h b/morpher/src/morphmesh.h index 303533c..7e3cb0b 100644 --- a/morpher/src/morphmesh.h +++ b/morpher/src/morphmesh.h @@ -7,20 +7,37 @@ #include <ofMesh.h> #include <ofxXmlSettings.h> +/* +Tim Redfern, March 2012 + +Loads meshes in Oak3D XML format + +Draws blended morph targets + +Multiple meshes are loaded as morph targets + +Coords are absolute + +TODO +draw(vector<int> targets, vector<float> weights); - m + +*/ + class morphmesh : public ofMesh { public: morphmesh(); + morphmesh(string filename); virtual ~morphmesh(); bool loadfile(string filename); void draw(int target); - void draw(const vector<float>& targetBlend); + void draw(const vector<int>& targets, const vector<float>& weights); int getNumTargets(); protected: private: //vector < <vector <ofVec3f> >targets; - vector< vector<ofVec3f> > targets; + vector< vector<ofVec3f> > morphs; }; #endif // MORPHMESH_H |
