diff options
| author | Tim Redfern <tim@eclectronics.org> | 2012-03-31 16:44:02 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2012-03-31 16:44:02 +0100 |
| commit | 0e8f0361c1068eb4c2f634dfcf4e1762d87f40d2 (patch) | |
| tree | 96a4eb154c1ac2dbe5ad4e04d4e33b281832e441 /morpher/src/morphmesh.h | |
| parent | 623e1924aeea83ea70c8ae7f645b067f17a293ea (diff) | |
implementing trap door
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 |
