Changeset 3259 for GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Bvh.h
- Timestamp:
- 01/09/09 02:16:38 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Bvh.h
r3243 r3259 30 30 friend class Bvh; 31 31 friend class BvhLoader; 32 friend class BvhExporter; 32 33 friend class mygreaterdistance; 33 34 … … 422 423 friend class Bvh; 423 424 friend class BvhLoader; 425 friend class BvhExporter; 424 426 425 427 public: … … 474 476 }; 475 477 478 476 479 typedef std::priority_queue<BvhNode *, std::vector<BvhNode *>, GtDistance> TraversalQueue; 477 480 … … 482 485 { 483 486 friend class BvhLoader; 487 friend class BvhExporter; 484 488 485 489 /** Bvh properties … … 524 528 */ 525 529 inline int GetNumNodes() const; 530 /** Counts the number of bvh nodes under this node 531 */ 532 int CountNumNodes(BvhNode *node) const; 526 533 /** Returns number of bvh leaves. 527 534 */ … … 557 564 */ 558 565 void CollectNodes(BvhNode *node, BvhNodeContainer &nodes, int depth); 566 /** Collect all child nodes. 567 */ 559 568 void CollectNodes(BvhNode *node, BvhNodeContainer &nodes); 560 569 /** Collect the "physical" leaves of the hierarchy … … 614 623 */ 615 624 void ResetNodeClassifications(); 616 /** Count triangles the node contains.625 /** Counts the number of triangles contained in this node. 617 626 */ 618 627 int CountTriangles(BvhNode *node) const; … … 654 663 //////////////////////////// 655 664 656 /** Returns stat s.665 /** Returns statistics. 657 666 */ 658 667 const BvhStats &GetBvhStats() const { return mBvhStats; }
Note: See TracChangeset
for help on using the changeset viewer.