Ignore:
Timestamp:
01/20/06 11:44:19 (18 years ago)
Author:
mattausch
Message:

added flexible checkvalitity function for view cells

File:
1 edited

Legend:

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

    r557 r561  
    253253        /** Checks if view cell is considered as valid. 
    254254        */ 
    255         virtual bool CheckValid(ViewCell *vc) const; 
     255        virtual bool CheckValidity(ViewCell *vc,  
     256                                                           float minPvsRatio,  
     257                                                           float maxPvsRatio) const; 
    256258 
    257259        /** Returns maximal allowed pvs size. 
    258260        */ 
    259261        int GetMaxPvsSize() const; 
     262 
     263        /** Returns maximal ratio. i.e., currentPVs / maxPvs, 
     264                where pvs is still considered valid. 
     265        */ 
     266        float GetMaxPvsRatio() const; 
    260267 
    261268        /** Exports view cell geometry. 
     
    327334        int mVisualizationSamples; 
    328335 
    329         //-- thresholds used for view cells merge 
    330         int mMinPvsDif; 
    331         int mMinPvs; 
    332         int mMaxPvs; 
    333  
    334336        float mTotalAreaValid; 
    335337        float mTotalArea; 
    336338 
    337339        int mMaxPvsSize; 
    338  
    339340        float mMaxPvsRatio; 
    340341 
     
    410411        void CollectViewCells(); 
    411412 
    412         /** Merges view cells front and back leaf view cell. 
    413         */ 
    414         bool MergeBspLeafViewCells(BspLeaf *front, BspLeaf *back) const; 
    415  
    416         /** Returns true if front and back leaf should be merged. 
    417         */ 
    418         bool ShouldMerge(BspLeaf *front, BspLeaf *back) const; 
    419  
    420413        void ConstructBspRays(const VssRayContainer &rays, 
    421414                                                  const int numSamples); 
Note: See TracChangeset for help on using the changeset viewer.