Last change
on this file since 12821 was 12821, checked in by Eric.Larour, 13 years ago |
Started migration from objects to classes
|
File size:
664 bytes
|
Line | |
---|
1 | #ifndef _VERTEXONEDGE_H_
|
---|
2 | #define _VERTEXONEDGE_H_
|
---|
3 |
|
---|
4 | #include "./include.h"
|
---|
5 | #include "./Edge.h"
|
---|
6 |
|
---|
7 | namespace bamg {
|
---|
8 |
|
---|
9 | //classes
|
---|
10 | class Mesh;
|
---|
11 | class BamgVertex;
|
---|
12 |
|
---|
13 | class VertexOnEdge {
|
---|
14 |
|
---|
15 | public:
|
---|
16 | BamgVertex* v;
|
---|
17 | Edge* be;
|
---|
18 | double abcisse;
|
---|
19 |
|
---|
20 | //Constructors
|
---|
21 | VertexOnEdge(BamgVertex * w, Edge *bw,double s) :v(w),be(bw),abcisse(s) {};
|
---|
22 | VertexOnEdge(){};
|
---|
23 |
|
---|
24 | //Operators
|
---|
25 | operator double () const { return abcisse;}
|
---|
26 | operator BamgVertex* () const { return v;}
|
---|
27 | operator Edge* () const { return be;}
|
---|
28 | BamgVertex & operator[](int i) const { return (*be)[i];}
|
---|
29 |
|
---|
30 | //Methods
|
---|
31 | void SetOnBTh();
|
---|
32 | void Set(const Mesh &,long,Mesh &);
|
---|
33 | };
|
---|
34 |
|
---|
35 | }
|
---|
36 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.