source: issm/trunk-jpl/src/c/bamg/Edge.h@ 15061

Last change on this file since 15061 was 15061, checked in by Eric.Larour, 12 years ago

CHG: moved all the bamg objects to bamg. Will progressively try and unplug the bamg and make it into a library.

File size: 815 bytes
Line 
1#ifndef _EDGE_H_
2#define _EDGE_H_
3
4#include "./BamgVertex.h"
5#include "../shared/Exceptions/exceptions.h"
6#include "./GeomEdge.h"
7
8namespace bamg {
9
10 //classes
11 class Mesh;
12
13 class Edge {
14
15 public:
16 BamgVertex *v[2];
17 long ReferenceNumber;
18 GeomEdge *GeomEdgeHook;
19 Edge *adj[2]; // the 2 adj edges if on the same curve
20
21 //Operators
22 BamgVertex &operator[](int i){return *v[i]; };
23 BamgVertex *operator()(int i){return v[i];};
24 R2 operator()(double t) const;// return the point
25 const BamgVertex &operator[](int i) const{return *v[i];};
26
27 //Methods
28 void Renumbering(BamgVertex *vb,BamgVertex *ve, long *renu);
29 int Intersection(const Edge & e);
30 void Set(const Mesh &,long,Mesh &);
31 void Echo(void);
32
33 };
34}
35#endif
Note: See TracBrowser for help on using the repository browser.