Last change
on this file was 15067, checked in by Eric.Larour, 12 years ago |
CHG: moved DataSet.h and Object.h into a directory called datastructures/
This should be our first building block which along shared/ will be used by every
other library we build. Not sure whether to make it into a library for now.
|
File size:
789 bytes
|
Rev | Line | |
---|
[3913] | 1 | #ifndef _EDGE_H_
|
---|
| 2 | #define _EDGE_H_
|
---|
| 3 |
|
---|
[5120] | 4 | #include "./BamgVertex.h"
|
---|
[15067] | 5 | #include "../shared/shared.h"
|
---|
[5573] | 6 | #include "./GeomEdge.h"
|
---|
[3913] | 7 |
|
---|
| 8 | namespace bamg {
|
---|
| 9 |
|
---|
[5095] | 10 | class Mesh;
|
---|
[13623] | 11 |
|
---|
[3913] | 12 | class Edge {
|
---|
| 13 |
|
---|
| 14 | public:
|
---|
[5143] | 15 | BamgVertex *v[2];
|
---|
[5148] | 16 | long ReferenceNumber;
|
---|
[5573] | 17 | GeomEdge *GeomEdgeHook;
|
---|
[5143] | 18 | Edge *adj[2]; // the 2 adj edges if on the same curve
|
---|
[3913] | 19 |
|
---|
| 20 | //Operators
|
---|
[5143] | 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];};
|
---|
[3913] | 25 |
|
---|
| 26 | //Methods
|
---|
[5130] | 27 | void Renumbering(BamgVertex *vb,BamgVertex *ve, long *renu);
|
---|
| 28 | int Intersection(const Edge & e);
|
---|
[5095] | 29 | void Set(const Mesh &,long,Mesh &);
|
---|
[3913] | 30 | void Echo(void);
|
---|
| 31 |
|
---|
| 32 | };
|
---|
| 33 | }
|
---|
| 34 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.