00001 00012 #ifndef __TRIANGLE_H__ 00013 #define __TRIANGLE_H__ 00014 00015 #include <plane.h> 00016 #include <point.h> 00017 00021 class Triangle : public Plane { 00022 public: 00029 Triangle(Point pA, Point pB, Point pC); 00030 00035 virtual int getCornerCount(); 00036 00041 virtual const DataType getDataType(); 00042 00049 Point operator[](int idx); 00050 00051 private: 00055 Point pointA; 00056 00060 Point pointB; 00061 00065 Point pointC; 00066 }; // class Triangle 00067 00068 #endif // ! __TRIANGLE_H__