Ice Sheet System Model  4.18
Code documentation
VertexOnGeom.h
Go to the documentation of this file.
1 #ifndef _VERTEXONGEOM_H_
2 #define _VERTEXONGEOM_H_
3 
4 #include "./include.h"
5 #include "./GeomVertex.h"
6 
7 namespace bamg {
8 
9  class Mesh;
10  class BamgVertex;
11  class GeomEdge;
12 
13  class VertexOnGeom{
14 
15  public:
16 
18  double curvilincoord;
19  union{
20  GeomVertex* gv; // if curvilincoord <0;
21  GeomEdge* ge; // if curvilincoord in [0..1]
22  };
23 
24  //Constructors/Destructors
25  VertexOnGeom();
27  VertexOnGeom(BamgVertex & m,GeomEdge &g,double s);
28 
29  //Operators
30  operator BamgVertex*() const {return meshvertex;}
31  operator GeomVertex * () const {return gv;}
32  operator GeomEdge * () const {return ge;}
33  operator const double & () const {return curvilincoord;}
34 
35  //Methods
36  int OnGeomVertex()const;
37  int OnGeomEdge() const;
38  int IsRequiredVertex();
39  void SetOn();
40 
41  //Inline methods
42  void Set(const VertexOnGeom&,const Mesh &,Mesh &);
43  };
44 }
45 #endif
bamg::VertexOnGeom::meshvertex
BamgVertex * meshvertex
Definition: VertexOnGeom.h:17
bamg::BamgVertex
Definition: BamgVertex.h:15
bamg::VertexOnGeom::gv
GeomVertex * gv
Definition: VertexOnGeom.h:20
bamg
Definition: AdjacentTriangle.cpp:9
bamg::VertexOnGeom::VertexOnGeom
VertexOnGeom()
Definition: VertexOnGeom.cpp:13
bamg::VertexOnGeom::IsRequiredVertex
int IsRequiredVertex()
Definition: VertexOnGeom.cpp:53
GeomVertex.h
bamg::GeomEdge
Definition: GeomEdge.h:11
bamg::VertexOnGeom::Set
void Set(const VertexOnGeom &, const Mesh &, Mesh &)
Definition: VertexOnGeom.cpp:33
bamg::VertexOnGeom::OnGeomEdge
int OnGeomEdge() const
Definition: VertexOnGeom.cpp:49
bamg::VertexOnGeom::curvilincoord
double curvilincoord
Definition: VertexOnGeom.h:18
bamg::VertexOnGeom
Definition: VertexOnGeom.h:13
bamg::VertexOnGeom::ge
GeomEdge * ge
Definition: VertexOnGeom.h:21
bamg::VertexOnGeom::SetOn
void SetOn()
Definition: VertexOnGeom.cpp:57
bamg::Mesh
Definition: Mesh.h:21
bamg::GeomVertex
Definition: GeomVertex.h:11
include.h
prototypes for include.h
bamg::VertexOnGeom::OnGeomVertex
int OnGeomVertex() const
Definition: VertexOnGeom.cpp:45