source: GTP/trunk/Lib/Geom/shared/GTGeometry/include/leaf.h @ 1526

Revision 1526, 1006 bytes checked in by gumbau, 18 years ago (diff)

Updated modules to the new interface and the new simplification algorithm improvements.

Line 
1#ifndef LEAF_H
2#define LEAF_H
3
4class Leaf
5{
6        public :
7        int  vertsLeaf[4]; // the four indices of the leaf
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// this class is used by the lodtreelibrary to represent a leaf
39class RuntimeLeaf
40{
41public:
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
52#endif
Note: See TracBrowser for help on using the repository browser.