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
RevLine 
[3913]1#ifndef _EDGE_H_
2#define _EDGE_H_
3
[5120]4#include "./BamgVertex.h"
[15061]5#include "../shared/Exceptions/exceptions.h"
[5573]6#include "./GeomEdge.h"
[3913]7
8namespace bamg {
9
10 //classes
[5095]11 class Mesh;
[13623]12
[3913]13 class Edge {
14
15 public:
[5143]16 BamgVertex *v[2];
[5148]17 long ReferenceNumber;
[5573]18 GeomEdge *GeomEdgeHook;
[5143]19 Edge *adj[2]; // the 2 adj edges if on the same curve
[3913]20
21 //Operators
[5143]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];};
[3913]26
27 //Methods
[5130]28 void Renumbering(BamgVertex *vb,BamgVertex *ve, long *renu);
29 int Intersection(const Edge & e);
[5095]30 void Set(const Mesh &,long,Mesh &);
[3913]31 void Echo(void);
32
33 };
34}
35#endif
Note: See TracBrowser for help on using the repository browser.