Ignore:
Timestamp:
01/15/08 23:02:37 (16 years ago)
Author:
bittner
Message:

Havran ray caster updates

File:
1 edited

Legend:

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

    r2592 r2599  
    9292// We give a box to which each ray is clipped to before the 
    9393// ray shooting is computed ! 
    94 void HavranRayCaster::CastRaysPacket4(Vector3 &boxmax, 
    95                                       Vector3 &boxmin, 
    96                                       Vector3 origin4[], 
    97                                       Vector3 direction4[], 
    98                                       int     result4[], 
    99                                       float   dist4[]) 
    100 { 
    101 #ifdef _USE_HAVRAN_SSE   
     94void HavranRayCaster::CastRaysPacket4(const Vector3 &boxmax, 
     95                                                                          const Vector3 &boxmin, 
     96                                                                          const Vector3 origin4[], 
     97                                                                          const Vector3 direction4[], 
     98                                                                          int     result4[], 
     99                                                                          float   dist4[]) 
     100{ 
     101#if defined(_USE_HAVRAN_SSE) 
    102102#ifdef USE_HAVRAN_RAYCASTER  
    103103  for (int i = 0; i < 4; i++) { 
    104104    result4[i] = -1; 
     105        //      raypack.SetObject(i, NULL); 
    105106    raypack.SetLoc(i, origin4[i]); 
    106107    raypack.SetDir(i, direction4[i]); 
     
    110111  // a particular ASDS, otherwise it is emulated by decomposition 
    111112  // of a packet to individual rays and traced individually. 
    112   mKtbtree->FindNearestI(raypack, boxmin, boxmax); 
     113  mKtbtree->FindNearestI(raypack, (Vector3&)boxmin, (Vector3&)boxmax); 
     114  //  mKtbtree->FindNearestI(raypack, bmin, bmax); 
    113115 
    114116  for (int i = 0; i < 4; i++) { 
     
    131133    sray.mOrigin = origin4[i]; 
    132134    sray.mDirection = direction4[i]; 
    133     mKtbtree->FindNearestI(sray, boxmin, boxmax); 
     135    mKtbtree->FindNearestI(sray, (Vector3&)boxmin, (Vector3&)boxmax); 
    134136    if (SimpleRay::IntersectionRes[0].intersectable) { 
    135137      // This is object ID - is this the triangle index ??? 
Note: See TracChangeset for help on using the changeset viewer.