Skip to content
Snippets Groups Projects
Commit bbdf9fd7 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

add comments
parent 32d64954
No related branches found
No related tags found
No related merge requests found
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
#include "MElement.h" #include "MElement.h"
// A model edge. // A model edge.
class GEdge : public GEntity { class GEdge : public GEntity {
protected: protected:
GVertex *v0, *v1; GVertex *v0, *v1;
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#include "SmoothNormals.h" #include "SmoothNormals.h"
// A geometric model. The model is a "not yet" non-manifold B-Rep. // A geometric model. The model is a "not yet" non-manifold B-Rep.
class GModel class GModel
{ {
protected: protected:
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#include "MVertex.h" #include "MVertex.h"
#include "SVector3.h" #include "SVector3.h"
// A mesh edge.
class MEdge { class MEdge {
private: private:
MVertex *_v[2]; MVertex *_v[2];
...@@ -52,26 +53,4 @@ class MEdge { ...@@ -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 #endif
...@@ -41,6 +41,7 @@ extern int quadfaces_hexa[6][4]; ...@@ -41,6 +41,7 @@ extern int quadfaces_hexa[6][4];
extern int quadfaces_prism[3][4]; extern int quadfaces_prism[3][4];
extern int quadfaces_pyramid[1][4]; extern int quadfaces_pyramid[1][4];
// A mesh element.
class MElement class MElement
{ {
private: private:
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
extern Context_T CTX; extern Context_T CTX;
// A mesh face.
class MFace { class MFace {
private: private:
MVertex *_v[4]; MVertex *_v[4];
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
class GEntity; class GEntity;
// A mesh vertex.
class MVertex{ class MVertex{
private: private:
static int _globalNum; static int _globalNum;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment