Changeset 485 for trunk/VUT/GtpVisibilityPreprocessor/src/VspKdTree.h
- Timestamp:
- 12/30/05 12:08:15 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/VspKdTree.h
r483 r485 285 285 */ 286 286 void SetupChildLinks(VspKdNode *b, VspKdNode *f); 287 288 287 /** Replaces the pointer to oldChild with a pointer to newChild. 289 288 */ 290 289 void ReplaceChildLink(VspKdNode *oldChild, VspKdNode *newChild); 291 292 290 /** Computes intersection of the ray with the node boundaries. 293 291 */ … … 568 566 */ 569 567 float GetMemUsage() const; 570 568 //? 571 569 float GetRayMemUsage() const; 572 570 … … 575 573 void CollectLeaves(vector<VspKdLeaf *> &leaves) const; 576 574 577 /** Merges leaves of this tree according to some criteria. 578 */ 579 int MergeLeaves(); 575 /** Merges view cells created with this tree according to 576 some (global) cost heuristics. 577 */ 578 int MergeViewCells(const VssRayContainer &rays); 580 579 581 580 /** Finds neighbours of this node. … … 604 603 */ 605 604 void CollectViewCells(ViewCellContainer &viewCells) const; 606 607 605 /** Refines view cells in a post processing step. 608 606 */ … … 612 610 */ 613 611 void CollectMergeCandidates(); 612 613 /** Collapses the tree with respect to the view cell partition. 614 @returns node of type leaf if the node could be collapsed, this node otherwise 615 */ 616 VspKdNode *CollapseTree(VspKdNode *node); 614 617 615 618 protected: … … 718 721 */ 719 722 bool MergeViewCells(VspKdLeaf *l1, VspKdLeaf *l2); 720 721 /** Collapses the tree with respect to the view cell partition.722 @returns node of type leaf if the node could be collapsed, this node otherwise723 */724 VspKdNode *CollapseTree(VspKdNode *node);725 723 726 724 /** Helper function revalidating the view cell leaf list after merge.
Note: See TracChangeset
for help on using the changeset viewer.