Ignore:
Timestamp:
11/18/05 14:02:49 (19 years ago)
Author:
mattausch
Message:

fixed controls for terrain demo
fixed member names in vspkdtree

File:
1 edited

Legend:

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

    r420 r421  
    421421        float GetAvgPvsSize(); 
    422422 
    423         /** Parses the environment and stores the global VspKd tree parameters 
    424         */ 
    425         static void ParseEnvironment(); 
    426  
    427         ///////////////////////////// 
    428         // Construction parameters 
    429  
    430         /// max depth of the tree 
    431         static int sTermMaxDepth; 
    432  
    433         /// minimal ratio of the volume of the cell and the query volume 
    434         static float sTermMinSize; 
    435  
    436         /// minimal pvs per node to still get subdivided 
    437         static int sTermMinPvs; 
    438  
    439         /// minimal ray number per node to still get subdivided 
    440         static int sTermMinRays; 
    441          
    442         /// maximal cost ration to subdivide a node 
    443         static float sTermMaxCostRatio; 
    444          
    445         /// maximal contribution per ray to subdivide the node 
    446         static float sTermMaxRayContribution; 
    447  
    448423        /** Returns memory usage in MB. 
    449424        */ 
     
    533508        int ReleaseMemory(const int time); 
    534509 
     510        bool TerminationCriteriaMet(const VspKdTreeLeaf *leaf,  
     511                                                                const AxisAlignedBox3 &box) const; 
     512 
    535513protected: 
    536514        ///////////////////////////// 
     
    575553        // reusable array of split candidates 
    576554        vector<SortableEntry> *splitCandidates; 
    577          
     555 
     556         
     557        ///////////////////////////// 
     558        // Construction parameters 
     559 
     560        /// max depth of the tree 
     561        int mTermMaxDepth; 
     562 
     563        /// minimal ratio of the volume of the cell and the query volume 
     564        float mTermMinSize; 
     565 
     566        /// minimal pvs per node to still get subdivided 
     567        int mTermMinPvs; 
     568 
     569        /// minimal ray number per node to still get subdivided 
     570        int mTermMinRays; 
     571         
     572        /// maximal cost ration to subdivide a node 
     573        float mTermMaxCostRatio; 
     574         
     575        /// maximal contribution per ray to subdivide the node 
     576        float mTermMaxRayContribution; 
     577 
     578 
    578579        ///////////////////////////// 
    579580        VspKdStatistics mStat;   
Note: See TracChangeset for help on using the changeset viewer.