Ice Sheet System Model  4.18
Code documentation
Edge.h
Go to the documentation of this file.
1 #ifndef _EDGE_H_
2 #define _EDGE_H_
3 
4 #include "./BamgVertex.h"
5 #include "../shared/shared.h"
6 #include "./GeomEdge.h"
7 
8 namespace bamg {
9 
10  class Mesh;
11 
12  class Edge {
13 
14  public:
18  Edge *adj[2]; // the 2 adj edges if on the same curve
19 
20  //Operators
21  BamgVertex &operator[](int i){return *v[i]; };
22  BamgVertex *operator()(int i){return v[i];};
23  R2 operator()(double t) const;// return the point
24  const BamgVertex &operator[](int i) const{return *v[i];};
25 
26  //Methods
27  void Renumbering(BamgVertex *vb,BamgVertex *ve, long *renu);
28  int Intersection(const Edge & e);
29  void Set(const Mesh &,long,Mesh &);
30  void Echo(void);
31 
32  };
33 }
34 #endif
GeomEdge.h
bamg::BamgVertex
Definition: BamgVertex.h:15
bamg::Edge::Echo
void Echo(void)
Definition: Edge.cpp:26
bamg::Edge::Set
void Set(const Mesh &, long, Mesh &)
Definition: Edge.cpp:16
bamg::Edge::adj
Edge * adj[2]
Definition: Edge.h:18
BamgVertex.h
bamg
Definition: AdjacentTriangle.cpp:9
bamg::Edge::operator()
BamgVertex * operator()(int i)
Definition: Edge.h:22
bamg::GeomEdge
Definition: GeomEdge.h:11
bamg::Edge::operator[]
BamgVertex & operator[](int i)
Definition: Edge.h:21
bamg::Edge::Renumbering
void Renumbering(BamgVertex *vb, BamgVertex *ve, long *renu)
Definition: Edge.cpp:34
bamg::Edge
Definition: Edge.h:12
bamg::Edge::v
BamgVertex * v[2]
Definition: Edge.h:15
bamg::Mesh
Definition: Mesh.h:21
bamg::Edge::ReferenceNumber
long ReferenceNumber
Definition: Edge.h:16
bamg::Edge::operator()
R2 operator()(double t) const
bamg::P2< double, double >
bamg::Edge::Intersection
int Intersection(const Edge &e)
Definition: Edge.cpp:41
bamg::Edge::GeomEdgeHook
GeomEdge * GeomEdgeHook
Definition: Edge.h:17
bamg::Edge::operator[]
const BamgVertex & operator[](int i) const
Definition: Edge.h:24