Ignore:
Timestamp:
01/09/09 02:16:38 (15 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Bvh.h

    r3243 r3259  
    3030        friend class Bvh; 
    3131        friend class BvhLoader; 
     32        friend class BvhExporter; 
    3233        friend class mygreaterdistance; 
    3334 
     
    422423        friend class Bvh; 
    423424        friend class BvhLoader; 
     425        friend class BvhExporter; 
    424426 
    425427public: 
     
    474476}; 
    475477 
     478 
    476479typedef std::priority_queue<BvhNode *, std::vector<BvhNode *>, GtDistance> TraversalQueue; 
    477480 
     
    482485{ 
    483486        friend class BvhLoader; 
     487        friend class BvhExporter; 
    484488 
    485489        /** Bvh properties 
     
    524528        */ 
    525529        inline int GetNumNodes() const; 
     530        /** Counts the number of bvh nodes under this node 
     531        */ 
     532        int CountNumNodes(BvhNode *node) const; 
    526533        /** Returns number of bvh leaves. 
    527534        */ 
     
    557564        */ 
    558565        void CollectNodes(BvhNode *node, BvhNodeContainer &nodes, int depth); 
     566        /** Collect all child nodes. 
     567        */ 
    559568        void CollectNodes(BvhNode *node, BvhNodeContainer &nodes); 
    560569        /** Collect the "physical" leaves of the hierarchy 
     
    614623        */ 
    615624        void ResetNodeClassifications(); 
    616         /** Count triangles the node contains. 
     625        /** Counts the number of triangles contained in this node. 
    617626        */ 
    618627        int CountTriangles(BvhNode *node) const; 
     
    654663        //////////////////////////// 
    655664 
    656         /** Returns stats. 
     665        /** Returns statistics. 
    657666        */ 
    658667        const BvhStats &GetBvhStats() const { return mBvhStats; } 
Note: See TracChangeset for help on using the changeset viewer.