#ifndef CCS_EDGE_GUARD #define CCS_EDGE_GUARD #include "Vertex.h" namespace CCS { class Face; class Edge { public: Vertex *start; Vertex *end; // Incident faces Face *leftFace; Face *rightFace; // Used during catmull-clark Vertex *newEdgePt; Edge(Vertex *start, Vertex *end) : start(start), end(end), leftFace(NULL), rightFace(NULL) { } Point calcMidPt() { return (start->p + end->p) * 0.5; } }; } #endif /* CCS_EDGE_GUARD */