Ice Sheet System Model
4.18
Code documentation
src
c
bamg
VertexOnVertex.cpp
Go to the documentation of this file.
1
#include <cstdio>
2
#include <cstring>
3
#include <cmath>
4
#include <ctime>
5
6
#include "
VertexOnVertex.h
"
7
#include "
Mesh.h
"
8
9
namespace
bamg
{
10
11
/*Constructors/Destructors*/
12
VertexOnVertex::VertexOnVertex
() {
/*{{{*/
13
v
=NULL;
14
bv
=NULL;
15
};
/*}}}*/
16
VertexOnVertex::VertexOnVertex
(
BamgVertex
* w,
BamgVertex
*bw) :v(w),bv(bw){
/*{{{*/
17
18
}
/*}}}*/
19
20
/*Methods*/
21
void
VertexOnVertex::Set
(
const
Mesh
&Th ,
long
i,
Mesh
&ThNew) {
/*{{{*/
22
*
this
= Th.
VertexOnBThVertex
[i];
23
v
= ThNew.
vertices
+ Th.
GetId
(
v
);
24
}
25
/*}}}*/
26
void
VertexOnVertex::SetOnBTh
(){
/*{{{*/
27
v
->
BackgroundVertexHook
=
bv
;
v
->
IndexInTriangle
=
IsVertexOnVertex
;
28
}
/*}}}*/
29
30
}
bamg::Mesh::GetId
long GetId(const Triangle &t) const
Definition:
Mesh.cpp:2608
bamg::BamgVertex
Definition:
BamgVertex.h:15
bamg::VertexOnVertex::Set
void Set(const Mesh &, long, Mesh &)
Definition:
VertexOnVertex.cpp:21
bamg
Definition:
AdjacentTriangle.cpp:9
VertexOnVertex.h
bamg::BamgVertex::BackgroundVertexHook
BamgVertex * BackgroundVertexHook
Definition:
BamgVertex.h:32
bamg::VertexOnVertex::VertexOnVertex
VertexOnVertex()
Definition:
VertexOnVertex.cpp:12
bamg::VertexOnVertex::SetOnBTh
void SetOnBTh()
Definition:
VertexOnVertex.cpp:26
bamg::VertexOnVertex::v
BamgVertex * v
Definition:
VertexOnVertex.h:14
bamg::IsVertexOnVertex
const int IsVertexOnVertex
Definition:
macros.h:11
Mesh.h
bamg::Mesh
Definition:
Mesh.h:21
bamg::VertexOnVertex::bv
BamgVertex * bv
Definition:
VertexOnVertex.h:15
bamg::Mesh::vertices
BamgVertex * vertices
Definition:
Mesh.h:27
bamg::Mesh::VertexOnBThVertex
VertexOnVertex * VertexOnBThVertex
Definition:
Mesh.h:49
bamg::BamgVertex::IndexInTriangle
short IndexInTriangle
Definition:
BamgVertex.h:25
Generated on Thu Jul 2 2020 08:09:16 for Ice Sheet System Model by
1.8.19