#ifndef CLOTH_MESH_H #define CLOTH_MESH_H #include #include #include #include #include #include #include using namespace vcg; class CVertex; class CEdge; class CFace; class CEdge { public: CVertex *v[2]; CFace *f; bool operator<(const CEdge& t) const { if(v[0] < t.v[0]) return true; if(v[0] > t.v[0]) return false; return v[1] < t.v[1]; } bool operator==(const CEdge& t) const { return v[0] == t.v[0] && v[1] == t.v[1]; } }; class CVertex: public VertexSimp2 { public: float color; }; class CFace: public FaceSimp2 {}; class CMesh: public tri::TriMesh< std::vector, std::vector > {}; #endif