Ignore:
Timestamp:
11/09/06 03:35:58 (18 years ago)
Author:
mattausch
Message:

implemented several accelleration svhemes for the gradient method

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/VspTree.cpp

    r1715 r1727  
    462462        Environment::GetSingleton()->GetIntValue("VspTree.maxTests", mMaxTests); 
    463463 
    464         Environment::GetSingleton()->GetFloatValue("VspTree.Construction.renderCostDecreaseWeight", mRenderCostDecreaseWeight); 
     464        Environment::GetSingleton()-> 
     465                GetFloatValue("VspTree.Construction.renderCostDecreaseWeight", mRenderCostDecreaseWeight); 
    465466         
    466467        // if only the driving axis is used for axis aligned split 
     
    12541255{ 
    12551256        // get subset of rays 
    1256         RayInfoContainer usedRays; 
     1257        RayInfoContainer randomRays; 
     1258        randomRays.reserve(mMaxTests); 
     1259 
     1260        RayInfoContainer *usedRays; 
    12571261 
    12581262        if (mMaxTests < (int)tData.mRays->size()) 
    12591263        { 
    1260                 GetRayInfoSets(*tData.mRays, mMaxTests, usedRays); 
     1264                GetRayInfoSets(*tData.mRays, mMaxTests, randomRays); 
     1265                usedRays = &randomRays; 
    12611266        } 
    12621267        else 
    12631268        { 
    1264                 usedRays = *tData.mRays; 
     1269                usedRays = tData.mRays; 
    12651270        } 
    12661271 
     
    12731278        const float maxBand = minBox + mMaxBand * sizeBox; 
    12741279 
    1275         SortSubdivisionCandidates(usedRays, axis, minBand, maxBand); 
     1280        SortSubdivisionCandidates(*usedRays, axis, minBand, maxBand); 
    12761281 
    12771282        // prepare the sweep 
    12781283        // note: returns pvs size => no need t give pvs size as function parameter 
    1279         const int pvsSize = PrepareHeuristics(usedRays); 
     1284        const int pvsSize = PrepareHeuristics(*usedRays); 
    12801285 
    12811286        // go through the lists, count the number of objects left and right 
Note: See TracChangeset for help on using the changeset viewer.