Revision 1019,
707 bytes
checked in by gumbau, 18 years ago
(diff) |
Improved Foliage class
|
Line | |
---|
1 | #ifndef LEAF_H
|
---|
2 | #define LEAF_H
|
---|
3 |
|
---|
4 | class Leaf
|
---|
5 | {
|
---|
6 | public :
|
---|
7 | int vertsLeaf[4];// Array of pointers to vertices
|
---|
8 | float normal[3];
|
---|
9 | float parentLeafCount;
|
---|
10 | float center[3];
|
---|
11 | int parent;
|
---|
12 | int childLeft;
|
---|
13 | int childRight;
|
---|
14 | int visible;
|
---|
15 | int root;
|
---|
16 |
|
---|
17 | bool exists;
|
---|
18 | int leafNear;
|
---|
19 | float dist;
|
---|
20 | long int leafCop;
|
---|
21 | float coplanar;
|
---|
22 | float criteria;
|
---|
23 | long int leafCrit;
|
---|
24 |
|
---|
25 | // Identifiers of the triangles forming this leaf
|
---|
26 | long int idTriangle[2];
|
---|
27 |
|
---|
28 | public :
|
---|
29 | // Constructors
|
---|
30 | Leaf (void); // default constructor
|
---|
31 | Leaf (const Leaf&); // Copy constructor
|
---|
32 | virtual ~Leaf (void); // Destructor
|
---|
33 |
|
---|
34 | float Distance (Leaf&);
|
---|
35 | float Coplanarity (Leaf&);
|
---|
36 | };
|
---|
37 |
|
---|
38 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.