|
Last change
on this file since 15066 was 15066, checked in by Eric.Larour, 12 years ago |
|
CHG: cutting links between bamg and classes even more.
|
|
File size:
804 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 |
|
|---|
| 8 | namespace bamg {
|
|---|
| 9 |
|
|---|
| 10 | class Mesh;
|
|---|
| 11 |
|
|---|
| 12 | class Edge {
|
|---|
| 13 |
|
|---|
| 14 | public:
|
|---|
| 15 | BamgVertex *v[2];
|
|---|
| 16 | long ReferenceNumber;
|
|---|
| 17 | GeomEdge *GeomEdgeHook;
|
|---|
| 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
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.