From bbdf9fd7d82ac64f60ac72d854216b3a56786a11 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Fri, 25 Aug 2006 17:16:18 +0000 Subject: [PATCH] add comments --- Geo/GEdge.h | 1 - Geo/GModel.h | 1 - Geo/MEdge.h | 23 +---------------------- Geo/MElement.h | 1 + Geo/MFace.h | 1 + Geo/MVertex.h | 1 + 6 files changed, 4 insertions(+), 24 deletions(-) diff --git a/Geo/GEdge.h b/Geo/GEdge.h index f0e5f568d4..47850c6255 100644 --- a/Geo/GEdge.h +++ b/Geo/GEdge.h @@ -28,7 +28,6 @@ #include "MElement.h" // A model edge. - class GEdge : public GEntity { protected: GVertex *v0, *v1; diff --git a/Geo/GModel.h b/Geo/GModel.h index ca52a4e19d..b8043c01fa 100644 --- a/Geo/GModel.h +++ b/Geo/GModel.h @@ -31,7 +31,6 @@ #include "SmoothNormals.h" // A geometric model. The model is a "not yet" non-manifold B-Rep. - class GModel { protected: diff --git a/Geo/MEdge.h b/Geo/MEdge.h index c5e74bc3ef..6d452adb81 100644 --- a/Geo/MEdge.h +++ b/Geo/MEdge.h @@ -23,6 +23,7 @@ #include "MVertex.h" #include "SVector3.h" +// A mesh edge. class MEdge { private: MVertex *_v[2]; @@ -52,26 +53,4 @@ class MEdge { } }; -class MEdgeLessThan { - public: - bool operator()(const MEdge &e1, const MEdge &e2) const - { - int e10 = e1.getVertex(0)->getNum(); - int e11 = e1.getVertex(1)->getNum(); - int e20 = e2.getVertex(0)->getNum(); - int e21 = e2.getVertex(1)->getNum(); - int i1 = std::min(e10, e11); - int i2 = std::min(e20, e21); - if(i1 < i2) - return true; - if(i1 > i2) - return false; - int j1 = std::max(e10, e11); - int j2 = std::max(e20, e21); - if(j1 < j2) - return true; - return false; - } -}; - #endif diff --git a/Geo/MElement.h b/Geo/MElement.h index a2dce869da..6d9122fa67 100644 --- a/Geo/MElement.h +++ b/Geo/MElement.h @@ -41,6 +41,7 @@ extern int quadfaces_hexa[6][4]; extern int quadfaces_prism[3][4]; extern int quadfaces_pyramid[1][4]; +// A mesh element. class MElement { private: diff --git a/Geo/MFace.h b/Geo/MFace.h index b29075fbdc..f6cec8c283 100644 --- a/Geo/MFace.h +++ b/Geo/MFace.h @@ -28,6 +28,7 @@ extern Context_T CTX; +// A mesh face. class MFace { private: MVertex *_v[4]; diff --git a/Geo/MVertex.h b/Geo/MVertex.h index 7ed8592523..ae6d1d4c04 100644 --- a/Geo/MVertex.h +++ b/Geo/MVertex.h @@ -26,6 +26,7 @@ class GEntity; +// A mesh vertex. class MVertex{ private: static int _globalNum; -- GitLab