diff --git a/TP_Geom3D_2018/Projet_modeling/meshquad.h b/TP_Geom3D_2018/Projet_modeling/meshquad.h index e550906ca08762472afef8c820f3289ee39b66a9..b49fcdd78671a0c0b50f22bfc291b667b70c6c81 100644 --- a/TP_Geom3D_2018/Projet_modeling/meshquad.h +++ b/TP_Geom3D_2018/Projet_modeling/meshquad.h @@ -1,4 +1,4 @@ -#ifndef MESHTRI_H + #ifndef MESHTRI_H #define MESHTRI_H #include <vector> @@ -10,7 +10,8 @@ class MeshQuad { -protected: +public: + /// Points std::vector<Vec3> m_points; /// indice de quads @@ -18,7 +19,6 @@ protected: /// nombre d'aretes int m_nb_ind_edges; -public: inline int nb_quads() const { return m_quad_indices.size()/4;} @@ -29,7 +29,8 @@ public: */ void clear(); - /** + + /** * @brief ajoute un sommet * @param P sommet * @return l'indice du sommet @@ -89,7 +90,7 @@ public: * @return l'aire du quad */ - float calcul_aire(Vec3 p1,Vec3 p2,Vec3 p3,Vec3 p4); + float quad_aire(int q) ; /** * @brief Determine si P est dans le quad A,B,C,D (P considéré ~ dans le plan ABCD)