Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ElmerCSC
GitHub Repository: ElmerCSC/elmerfem
Path: blob/devel/meshgen2d/src/MeshNode.cpp
3196 views
1
#include "MeshNode.h"
2
3
static int nextTag = 1;
4
5
MeshNode::MeshNode()
6
{
7
tag = nextTag;
8
x = 0;
9
y = 0;
10
fixed = NEUTRAL;
11
++nextTag;
12
}
13
14
15
MeshNode::MeshNode(const double xc, const double yc)
16
{
17
tag = nextTag;
18
x = xc;
19
y = yc;
20
fixed = NEUTRAL;
21
++nextTag;
22
}
23
24
MeshNode::MeshNode(const int t, const double xc, const double yc)
25
{
26
tag = t;
27
x = xc;
28
y = yc;
29
fixed = NEUTRAL;
30
}
31
32
MeshNode::MeshNode(const GeometryNode& nd)
33
{
34
tag = nd.tag;
35
x = nd.x;
36
y = nd.y;
37
fixed = NEUTRAL;
38
if (tag >= nextTag)
39
nextTag = tag + 1;
40
}
41
42