From 83504c1295287be7ea667049f4906f0c10c1e25b Mon Sep 17 00:00:00 2001 From: BELARIBI NADJIB <nbelaribi@etu.unistra.fr> Date: Thu, 2 Apr 2020 21:40:12 +0200 Subject: [PATCH] Update meshquad.h --- TP_Geom3D_2018/Projet_modeling/meshquad.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/TP_Geom3D_2018/Projet_modeling/meshquad.h b/TP_Geom3D_2018/Projet_modeling/meshquad.h index e550906..b49fcdd 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) -- GitLab