source:
GTP/trunk/Lib/Geom/shared/GTGeometry/include/leaf.h
@
1526
Revision 1526, 1006 bytes checked in by gumbau, 18 years ago (diff) |
---|
Rev | Line | |
---|---|---|
[1019] | 1 | #ifndef LEAF_H |
2 | #define LEAF_H | |
[774] | 3 | |
[1019] | 4 | class Leaf |
[774] | 5 | { |
6 | public : | |
[1526] | 7 | int vertsLeaf[4]; // the four indices of the leaf |
[1019] | 8 | float normal[3]; |
9 | float parentLeafCount; | |
10 | float center[3]; | |
11 | int parent; | |
12 | int childLeft; | |
13 | int childRight; | |
[832] | 14 | int visible; |
[1019] | 15 | int root; |
[834] | 16 | |
[1019] | 17 | bool exists; |
18 | int leafNear; | |
[834] | 19 | float dist; |
[1019] | 20 | long int leafCop; |
[834] | 21 | float coplanar; |
[1019] | 22 | float criteria; |
23 | long int leafCrit; | |
[832] | 24 | |
[1019] | 25 | // Identifiers of the triangles forming this leaf |
26 | long int idTriangle[2]; | |
[834] | 27 | |
[774] | 28 | public : |
29 | // Constructors | |
[1019] | 30 | Leaf (void); // default constructor |
31 | Leaf (const Leaf&); // Copy constructor | |
[1526] | 32 | // virtual ~Leaf (void); // Destructor |
[832] | 33 | |
[1019] | 34 | float Distance (Leaf&); |
35 | float Coplanarity (Leaf&); | |
[774] | 36 | }; |
37 | ||
[1526] | 38 | // this class is used by the lodtreelibrary to represent a leaf |
39 | class RuntimeLeaf | |
40 | { | |
41 | public: | |
42 | RuntimeLeaf(void); | |
43 | RuntimeLeaf (const RuntimeLeaf&); // Copy constructor | |
44 | ||
45 | int vertsLeaf[4]; // the four indices of the leaf | |
46 | int childLeft; | |
47 | int childRight; | |
48 | int parent; | |
49 | int root; | |
50 | }; | |
51 | ||
[774] | 52 | #endif |
Note: See TracBrowser
for help on using the repository browser.