Ignore:
Timestamp:
07/06/06 08:55:06 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/VspOspTree.h

    r1077 r1084  
    871871                The split candidates are generated on possible visibility 
    872872                events (i.e., where ray segments intersect the ray boundaries). 
    873                 The sorted candidates are needed to compute the SAH. 
     873                The sorted candidates are needed to compute the heuristics. 
    874874 
    875875                @param polys the input for choosing split candidates 
     
    882882                                                         float maxBand); 
    883883 
    884         /** Computes pvs increase with respect to the previous pvs for SAH. 
     884        /** Computes pvs increase with respect to the previous pvs for heuristics. 
    885885        */ 
    886886        int GetPvsIncr(Intersectable *object, const KdPvsMap &activeNodes); 
     
    910910        void AddContriToPvs(KdLeaf *leaf, int &pvs) const; 
    911911 
    912         /** Prepares objects for SAH. 
     912        /** Prepares objects for the heuristics. 
    913913                @returns pvs size of the ray container 
    914914        */ 
     
    14381438                                          float &pBack); 
    14391439 
    1440         /** Sorts split candidates for surface area heuristics for axis aligned splits. 
    1441                 @param polys the input for choosing split candidates 
     1440        /** Sorts split candidates for cost heuristics using axis aligned splits. 
     1441                @param node the current node 
    14421442                @param axis the current split axis 
    1443                 @param splitCandidates returns sorted list of split candidates 
    1444         */ 
    1445         void SortSplitCandidates(const RayInfoContainer &rays,  
    1446                                                          const int axis,  
    1447                                                          float minBand,  
    1448                                                          float maxBand); 
     1443        */ 
     1444        void SortSplitCandidates(KdLeaf *node, const int axis); 
    14491445 
    14501446        /** Computes best cost for axis aligned planes. 
    14511447        */ 
    1452 /*      float EvalLocalCostHeuristics(const RayInfoContainer &rays, 
    1453                                                                   const AxisAlignedBox3 &box, 
    1454                                                                   const int pvsSize, 
    1455                                                                   const int axis, 
    1456                                                                   float &position); 
    1457 */ 
    1458         float EvalLocalCostHeuristics(BspLeaf *node, 
     1448        float EvalLocalCostHeuristics(KdLeaf *node, 
    14591449                const AxisAlignedBox3 &box, 
    14601450                const int axis, 
     
    15041494        inline bool GlobalTerminationCriteriaMet(const OspTraversalData &data) const; 
    15051495 
     1496        float SelectSplitPlane(const VspTraversalData &tData, 
     1497                                                                AxisAlignedPlane &plane, 
     1498                                                                float &pFront, 
     1499                                                                float &pBack); 
    15061500        /** Adds ray sample contributions to the PVS. 
    15071501                @param sampleContributions the number contributions of the samples 
     
    15431537        void AddContriToPvs(Intersectable *object, int &pvs) const; 
    15441538 
    1545         /** Prepares objects for SAH. 
    1546                 @returns pvs size of the ray container 
    1547         */ 
    1548         int PrepareHeuristics(const RayInfoContainer &rays); 
     1539        /** Prepares objects for the cost heuristics. 
     1540                @returns pvs size of the node 
     1541        */ 
     1542        int PrepareHeuristics(const ObjectContainer &objects); 
    15491543 
    15501544        int PrepareHeuristics(Intersectable *object); 
     
    16311625        int mCreatedViewCells; 
    16321626 
     1627        float mSplitBorder; 
     1628 
     1629 
    16331630private: 
    16341631 
Note: See TracChangeset for help on using the changeset viewer.