#ifndef LEAF_H #define LEAF_H class Leaf { public : int vertsLeaf[4]; // the four indices of the leaf float normal[3]; float parentLeafCount; float center[3]; int parent; int childLeft; int childRight; int visible; int root; bool exists; int leafNear; float dist; long int leafCop; float coplanar; float criteria; long int leafCrit; // Identifiers of the triangles forming this leaf long int idTriangle[2]; public : // Constructors Leaf (void); // default constructor Leaf (const Leaf&); // Copy constructor // virtual ~Leaf (void); // Destructor float Distance (Leaf&); float Coplanarity (Leaf&); }; // this class is used by the lodtreelibrary to represent a leaf class RuntimeLeaf { public: RuntimeLeaf(void); RuntimeLeaf (const RuntimeLeaf&); // Copy constructor int vertsLeaf[4]; // the four indices of the leaf int childLeft; int childRight; int parent; int root; }; #endif