From 0e8f0361c1068eb4c2f634dfcf4e1762d87f40d2 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Sat, 31 Mar 2012 16:44:02 +0100 Subject: implementing trap door --- morpher/src/morphmesh.h | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'morpher/src/morphmesh.h') 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 #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 + +TODO +draw(vector targets, vector 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& targetBlend); + void draw(const vector& targets, const vector& weights); int getNumTargets(); protected: private: //vector < >targets; - vector< vector > targets; + vector< vector > morphs; }; #endif // MORPHMESH_H -- cgit v1.2.3