Ignore:
Timestamp:
12/30/05 12:08:15 (19 years ago)
Author:
mattausch
Message:

changed castlinesegment of vspbpstree
changed rayinfo ray classification for bsp tree
implemented shuffling

File:
1 edited

Legend:

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

    r483 r485  
    285285        */ 
    286286        void SetupChildLinks(VspKdNode *b, VspKdNode *f); 
    287  
    288287        /** Replaces the pointer to oldChild with a pointer to newChild. 
    289288        */ 
    290289        void ReplaceChildLink(VspKdNode *oldChild, VspKdNode *newChild); 
    291   
    292290        /** Computes intersection of the ray with the node boundaries. 
    293291        */ 
     
    568566        */ 
    569567        float GetMemUsage() const; 
    570          
     568        //? 
    571569        float GetRayMemUsage() const; 
    572570 
     
    575573        void CollectLeaves(vector<VspKdLeaf *> &leaves) const; 
    576574 
    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); 
    580579 
    581580        /** Finds neighbours of this node. 
     
    604603        */ 
    605604        void CollectViewCells(ViewCellContainer &viewCells) const; 
    606  
    607605        /** Refines view cells in a post processing step. 
    608606        */ 
     
    612610        */ 
    613611        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); 
    614617 
    615618protected: 
     
    718721        */ 
    719722        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 otherwise 
    723         */ 
    724         VspKdNode *CollapseTree(VspKdNode *node); 
    725723         
    726724        /** Helper function revalidating the view cell leaf list after merge. 
Note: See TracChangeset for help on using the changeset viewer.