Ignore:
Timestamp:
11/20/05 22:57:44 (19 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r423 r424  
    274274mRoot(NULL),  
    275275mGenerateViewCells(false), 
    276 //-- factors for bsp tree split plane heuristics 
    277 mVerticalSplitsFactor(1.0f), 
    278 mLargestPolyAreaFactor(1.0f), 
    279 mBlockedRaysFactor(1.0f), 
    280 mLeastRaySplitsFactor(1.0f), 
    281 mBalancedRaysFactor(1.0f), 
    282 mPvsFactor(1.0f), 
    283 mLeastSplitsFactor(1.0f), 
    284 mBalancedPolysFactor(1.0f), 
    285 mBalancedViewCellsFactor(1.0f), 
    286 //------------------------------------ 
    287276mStoreLeavesWithRays(false), 
    288277mPvsUseArea(true) 
     
    299288        environment->GetFloatValue("BspTree.Termination.maxAccRayLenght", mTermMaxAccRayLength); 
    300289 
     290        //-- factors for bsp tree split plane heuristics 
     291        environment->GetFloatValue("BspTree.Factor.verticalSplits", mVerticalSplitsFactor); 
     292        environment->GetFloatValue("BspTree.Factor.largestPolyArea", mLargestPolyAreaFactor); 
     293        environment->GetFloatValue("BspTree.Factor.blockedRays", mBlockedRaysFactor); 
     294        environment->GetFloatValue("BspTree.Factor.leastRaySplits", mLeastRaySplitsFactor); 
     295        environment->GetFloatValue("BspTree.Factor.balancedRays", mBalancedRaysFactor); 
     296        environment->GetFloatValue("BspTree.Factor.pvsFactor", mPvsFactor); 
     297        environment->GetFloatValue("BspTree.Factor.leastSplits" , mLeastSplitsFactor); 
     298        environment->GetFloatValue("BspTree.Factor.balancedPolys", mBalancedPolysFactor); 
     299        environment->GetFloatValue("BspTree.Factor.balancedViewCells", mBalancedViewCellsFactor); 
     300        environment->GetFloatValue("BspTree.Termination.ct_div_ci", mCtDivCi); 
     301 
    301302        //-- termination criteria for axis aligned split 
    302         environment->GetFloatValue("BspTree.Termination.AxisAligned.ct_div_ci", mCtDivCi); 
     303        environment->GetFloatValue("BspTree.Termination.AxisAligned.ct_div_ci", mAaCtDivCi); 
    303304        environment->GetFloatValue("BspTree.Termination.AxisAligned.maxCostRatio", mMaxCostRatio); 
    304305        environment->GetIntValue("BspTree.Termination.AxisAligned.maxPolys",  
     
    10341035   
    10351036        float oldCost = (float)polys.size(); 
    1036         float newCost = mCtDivCi + minSum / boxArea; 
     1037        float newCost = mAaCtDivCi + minSum / boxArea; 
    10371038        float ratio = newCost / oldCost; 
    10381039 
     
    14911492 
    14921493                        if (!mPvsUseArea) // use front and back cell areas to approximate volume 
    1493                         { 
     1494                        {        
    14941495                                float len = Distance(entP, extP); 
    14951496                                pOverall += len; 
Note: See TracChangeset for help on using the changeset viewer.