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

Legend:

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

    r1147 r1149  
    13581358                                          float &position) 
    13591359{ 
    1360         RayInfoContainer usedRays, savedRays; 
    1361  
    1362 /*      if (mMaxTests < rays.size()) 
    1363         { 
    1364                 GetRaySets(rays, mMaxTests, usedRays, savedRays); 
     1360        RayInfoContainer usedRays; 
     1361 
     1362        if (mMaxTests < rays.size()) 
     1363        { 
     1364                GetRayInfoSets(rays, mMaxTests, usedRays); 
    13651365        } 
    13661366        else 
    1367         {*/ 
     1367        { 
    13681368                usedRays = rays; 
    1369         //} 
     1369        } 
    13701370 
    13711371        const float minBox = box.Min(axis); 
     
    14051405 
    14061406        // set all object as belonging to the front pvs 
    1407         for(ri = rays.begin(); ri != ri_end; ++ ri) 
     1407        for(ri = usedRays.begin(); ri != ri_end; ++ ri) 
    14081408        { 
    14091409                Intersectable *oObject = (*ri).mRay->mOriginObject; 
     
    15001500                         
    15011501                        // HACK: current positition is BETWEEN visibility events 
    1502                         if ((ci + 1) != ci_end) 
     1502                        if (0 && ((ci + 1) != ci_end)) 
     1503                        { 
    15031504                                currentPos = ((*ci).value + (*(ci + 1)).value) * 0.5f; 
     1505                        } 
    15041506                        else 
    1505                                 currentPos = (*ci).value;                        
     1507                currentPos = (*ci).value;                        
    15061508 
    15071509                        //Debug  << "pos=" << (*ci).value << "\t pvs=(" <<  pvsl << "," << pvsr << ")" << endl; 
Note: See TracChangeset for help on using the changeset viewer.