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 @@
#include "MElement.h"
// A model edge.
class GEdge : public GEntity {
protected:
GVertex *v0, *v1;
......
......@@ -31,7 +31,6 @@
#include "SmoothNormals.h"
// A geometric model. The model is a "not yet" non-manifold B-Rep.
class GModel
{
protected:
......
......@@ -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
......@@ -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:
......
......@@ -28,6 +28,7 @@
extern Context_T CTX;
// A mesh face.
class MFace {
private:
MVertex *_v[4];
......
......@@ -26,6 +26,7 @@
class GEntity;
// A mesh vertex.
class MVertex{
private:
static int _globalNum;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment