toit.hh (688B)
1 #ifndef _RULES_TOIT_HH_ 2 #define _RULES_TOIT_HH_ 3 4 #include "all_includes.hh" 5 6 class ToitQuad : public Chose { 7 private: 8 Quad c; 9 float height; 10 public: 11 ToitQuad(Quad _c, float _height); 12 virtual void triangulation(); 13 virtual void getBoundingBoxPoints(); 14 private: 15 void pointCentral(); 16 void quatrePoints(); 17 void deuxPoints(); 18 void deuxPointsVerticaux(); 19 void plat(); 20 }; 21 22 class ToitTri : public Chose { 23 private: 24 Triangle c; 25 float height; 26 public: 27 ToitTri(Triangle _c, float _height); 28 virtual void triangulation(); 29 virtual void getBoundingBoxPoints(); 30 private: 31 void pointCentral(); 32 void troisPoints(); 33 void unPointVertical(); 34 void deuxPointsVerticaux(); 35 void plat(); 36 }; 37 38 #endif