Ignore:
Timestamp:
10/08/06 23:29:21 (18 years ago)
Author:
bittner
Message:

functional ray casting - fixed computeinvdir issue

File:
1 edited

Legend:

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

    r1582 r1584  
    2525 
    2626#define DEBUG_RAYCAST 0 
     27#define SHOW_RAYCAST_TIMING 1 
    2728 
    2829 
     
    882883                { 
    883884                        mRayCaster->CastRays16( 
    884                                 i, 
    885                                 rays,                            
    886                                 vssRays, 
    887                                 mViewCellsManager->GetViewSpaceBox(), 
    888                                 castDoubleRays, 
    889                                 pruneInvalidRays); 
     885                                                                   i, 
     886                                                                   rays,                                 
     887                                                                   vssRays, 
     888                                                                   mViewCellsManager->GetViewSpaceBox(), 
     889                                                                   castDoubleRays, 
     890                                                                   pruneInvalidRays); 
    890891                        i += 16; 
    891892                } 
    892893                else  
    893                 { 
     894                  { 
    894895                        mRayCaster->CastRay( 
    895                                 rays[i], 
    896                                 vssRays, 
    897                                 mViewCellsManager->GetViewSpaceBox(), 
    898                                 castDoubleRays, 
    899                                 pruneInvalidRays); 
     896                                                                rays[i], 
     897                                                                vssRays, 
     898                                                                mViewCellsManager->GetViewSpaceBox(), 
     899                                                                castDoubleRays, 
     900                                                                pruneInvalidRays); 
    900901                        i ++; 
    901                 } 
    902         } 
    903  
    904         if (i % 10000 == 0) 
    905                 cout<<"."; 
    906  
    907 #if DEBUB_RAYCAST 
     902                  } 
     903                if (i % 10000 == 0) 
     904                  cout<<"."; 
     905        } 
     906         
     907 
    908908        long t2 = GetTime(); 
     909 
     910#if SHOW_RAYCAST_TIMING 
    909911        if (castDoubleRays) 
    910912                cout << 2 * rays.size() / (1e3f * TimeDiff(t1, t2)) << "M rays/s" << endl; 
     
    956958        // do not store anything else then intersections at the ray 
    957959        ray.Init(point, direction, Ray::LOCAL_RAY); 
    958 } 
    959  
    960  
    961 } 
     960         
     961} 
     962 
     963 
     964} 
Note: See TracChangeset for help on using the changeset viewer.