Ignore:
Timestamp:
11/25/05 22:31:30 (19 years ago)
Author:
mattausch
Message:

detected leak in BspTree?
added specialised fast view cell bsp tree called VspBspTree?

File:
1 edited

Legend:

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

    r436 r437  
    333333                 
    334334        */ 
    335         void AddToPvs(const BoundedRayContainer &rays, int &sampleContributions, 
    336                                   int &contributingSamples, bool storeLeavesWithRays = false); 
     335        void AddToPvs(const BoundedRayContainer &rays,  
     336                                  int &sampleContributions, 
     337                                  int &contributingSamples,  
     338                                  bool storeLeavesWithRays = false); 
    337339 
    338340protected: 
     
    471473        int CastRay(Ray &ray); 
    472474 
    473         /** Set to true if new view cells shall be generated in each leaf. 
    474         */ 
    475         void SetGenerateViewCells(int generateViewCells); 
    476  
    477475        /// bsp tree construction types 
    478476        enum {FROM_INPUT_VIEW_CELLS, FROM_SCENE_GEOMETRY, FROM_SAMPLES}; 
     
    701699                                                  BspTraversalData &backData,  
    702700                                                  const PolygonContainer &coincident, 
    703                                                   const Plane3 splitPlane) const; 
     701                                                  const Plane3 &splitPlane) const; 
    704702         
    705703        /** Computes best cost ratio for the suface area heuristics for axis aligned 
     
    767765        */ 
    768766        void AddObjToPvs(Intersectable *obj, const int cf, int &frontPvs, int &backPvs) const; 
    769          
     767 
     768        /** Computes PVS size induced by the rays. 
     769        */ 
    770770        int ComputePvsSize(const BoundedRayContainer &rays) const; 
    771771 
     772        /** Returns true if tree can be terminated. 
     773        */ 
    772774        inline bool TerminationCriteriaMet(const BspTraversalData &data) const; 
    773775 
     776        /** Computes accumulated ray lenght of this rays. 
     777        */ 
    774778        float AccumulatedRayLength(BoundedRayContainer &rays) const; 
    775779 
    776         /// Pointer to the root of the tree 
     780        /// Pointer to the root of the tree. 
    777781        BspNode *mRoot; 
    778                  
     782 
     783        /// Stores statistics during traversal. 
    779784        BspTreeStatistics mStat; 
    780785 
     
    800805        BspViewCell *mRootCell; 
    801806 
    802         /// should view cells be stored or generated in the leaves? 
     807        /// if view cells should be generated or the given view cells should be used. 
    803808        bool mGenerateViewCells; 
    804809 
Note: See TracChangeset for help on using the changeset viewer.