Changeset 655


Ignore:
Timestamp:
02/19/06 20:22:36 (18 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/Lib/Vis/Preprocessing
Files:
4 edited

Legend:

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

    r654 r655  
    333333                minGlobalCostRatio      0.0000001 
    334334                maxViewCells            40000 
    335          
     335                useSplitCostQueue       true 
     336 
    336337                # used for pvs criterium 
    337338                ct_div_ci 0.0 
  • GTP/trunk/Lib/Vis/Preprocessing/src/Environment.cpp

    r654 r655  
    18161816                                        "0.0001"); 
    18171817 
     1818        RegisterOption("VspBspTree.useSplitCostQueue", 
     1819                optBool, 
     1820                "-vsp_bsp_use_split_cost_queue=", 
     1821                "true"); 
     1822 
    18181823        RegisterOption("VspBspTree.Termination.globalCostMissTolerance", 
    18191824                                        optInt, 
  • GTP/trunk/Lib/Vis/Preprocessing/src/VspBspTree.cpp

    r654 r655  
    123123 
    124124        environment->GetFloatValue("VspBspTree.Construction.renderCostWeight", mRenderCostWeight); 
    125  
    126125        environment->GetBoolValue("VspBspTree.usePolygonSplitIfAvailable", mUsePolygonSplitIfAvailable); 
    127126 
     
    129128 
    130129        environment->GetBoolValue("VspBspTree.useCostHeuristics", mUseCostHeuristics); 
     130        environment->GetBoolValue("VspBspTree.useSplitCostQueue", mUseSplitCostQueue); 
    131131 
    132132 
     
    399399                  << TimeDiff(startTime, GetTime())*1e-3 << " secs" << endl << endl; 
    400400 
    401         if (0) 
     401        // use split cost priority queue 
     402        if (mUseSplitCostQueue) 
     403        { 
    402404                ConstructWithSplitQueue(polys, rays); 
     405        } 
    403406        else 
     407        { 
    404408                Construct(polys, rays); 
     409        } 
    405410 
    406411        // clean up polygons 
     
    593598                float costRatio = splitCandidate.GetCost() / mTotalCost; 
    594599 
    595                 Debug << "cost ratio: " << costRatio << endl; 
     600                //Debug << "cost ratio: " << costRatio << endl; 
    596601 
    597602                if (costRatio < mTermMinGlobalCostRatio) 
    598                 {Debug << "here1 cost ratio: " << costRatio << " max " << mTermMinGlobalCostRatio << endl; 
    599603                        ++ mGlobalCostMisses; 
    600                 } 
     604                 
    601605                if (0 && !mOutOfMemory) 
    602606                { 
  • GTP/trunk/Lib/Vis/Preprocessing/src/VspBspTree.h

    r654 r655  
    715715        int mGlobalCostMisses; 
    716716 
     717        bool mUseSplitCostQueue; 
    717718        //-- termination criteria for axis aligned split 
    718719 
Note: See TracChangeset for help on using the changeset viewer.