Changeset 978 for GTP


Ignore:
Timestamp:
05/23/06 09:33:03 (18 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/Lib/Vis/Preprocessing
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/scripts/generate_viewcells.env

    r976 r978  
    262262#       filename ../scripts/viewcells_vienna.xml 
    263263#       filename D:/svn/gametools/GTP/trunk/Lib/Vis/Preprocessing/scripts/vienna-visibility.xml 
    264         filename D:/svn/gametools/GTP/trunk/Lib/Vis/Preprocessing/scripts/vienna-visibility.xml.zip 
     264        filename E:/svn/gametools/GTP/trunk/Lib/Vis/Preprocessing/scripts/vienna-visibility.xml.zip 
    265265} 
    266266 
  • GTP/trunk/Lib/Vis/Preprocessing/src/VspBspTree.cpp

    r971 r978  
    14531453                bestAxis = -1; 
    14541454 
    1455         // mximum cost ratio for axis to be valid: 
     1455#if 0 
     1456        // maximum cost ratio for axis to be valid: 
    14561457        // if exceeded, spatial mid split is used instead 
    1457         //const maxCostRatioForHeur = 0.99f; 
    1458  
    1459  
     1458        const maxCostRatioForHeur = 0.99f; 
     1459#endif 
     1460 
     1461        // if we use some kind of specialised fixed axis 
    14601462    const bool useSpecialAxis =  
    14611463                mOnlyDrivingAxis || mUseRandomAxis || mCirculatingAxis; 
    14621464 
    1463  
    1464         // use some kind of specialised fixed axis 
    14651465        if (mUseRandomAxis) 
    14661466                sAxis = Random(3); 
     
    15431543                        } 
    15441544                                                 
    1545  
    1546                         if (!mUseDrivingAxisForMaxCost) 
     1545                         
     1546                        if (mUseDrivingAxisForMaxCost) 
     1547                        { 
     1548                                // we take longest axis split if cost ratio exceeds threshold 
     1549                                if (nCostRatio[axis] < min(maxCostRatioForArbitraryAxis, nCostRatio[bestAxis])) 
     1550                                { 
     1551                                        bestAxis = axis; 
     1552                                } 
     1553                                else if (nCostRatio[axis] < nCostRatio[bestAxis]) 
     1554                                        Debug << "taking split along longest axis (" << bestAxis << ") instead of  (" << axis << ")" << endl; 
     1555                                 
     1556                        } 
     1557                        else 
    15471558                        { 
    15481559                                if (bestAxis == -1) 
     
    15541565                                        bestAxis = axis; 
    15551566                                } 
    1556                         } 
    1557                         else  
    1558                         { 
    1559                                  // NOTE: takes longest axis split if cost ratio exceeds threshold 
    1560                                 if (nCostRatio[axis] < min(maxCostRatioForArbitraryAxis, nCostRatio[bestAxis])) 
    1561                                 { 
    1562                                         bestAxis = axis; 
    1563                                 } 
    1564                                 else if (nCostRatio[axis] < nCostRatio[bestAxis]) 
    1565                                         Debug << "taking split along longest axis (" << bestAxis << ") instead of  (" << axis << ")" << endl; 
    1566                                  
    1567                         } 
     1567                        }  
    15681568                } 
    15691569        } 
Note: See TracChangeset for help on using the changeset viewer.