Ignore:
Timestamp:
01/05/06 10:56:50 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/VspBspTree.h

    r497 r501  
    258258 
    259259        /** Collapses the tree with respect to the view cell partition. 
    260         */ 
    261         void CollapseTree(); 
    262  
    263   ViewCell * 
    264   GetViewCell(const Vector3 &point); 
     260                @returns number of collapsed nodes 
     261        */ 
     262        int CollapseTree(); 
     263 
     264        /** Returns view cell the current point is located in. 
     265        */ 
     266        ViewCell *GetViewCell(const Vector3 &point); 
    265267 
    266268        /** Constructs bsp rays for post processing and visualization. 
     
    314316        /** Collapses the tree with respect to the view cell partition, 
    315317                i.e. leaves having the same view cell are collapsed. 
     318                @param node the root of the subtree to be collapsed 
     319                @param collapsed returns the number of collapsed nodes 
    316320                @returns node of type leaf if the node could be collapsed,  
    317321                this node otherwise 
    318322        */ 
    319         BspNode *CollapseTree(BspNode *node); 
     323        BspNode *CollapseTree(BspNode *node, int &collapsed); 
    320324        /** Shuffles the leaves, i.e., tests if exchanging 
    321325                the leaves helps in improving the view cells. 
Note: See TracChangeset for help on using the changeset viewer.