Changeset 2599 for GTP/trunk/Lib/Vis/Preprocessing/src/HavranRayCaster.cpp
- Timestamp:
- 01/15/08 23:02:37 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/HavranRayCaster.cpp
r2592 r2599 92 92 // We give a box to which each ray is clipped to before the 93 93 // ray shooting is computed ! 94 void HavranRayCaster::CastRaysPacket4( Vector3 &boxmax,95 96 97 98 99 100 { 101 #if def _USE_HAVRAN_SSE94 void 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) 102 102 #ifdef USE_HAVRAN_RAYCASTER 103 103 for (int i = 0; i < 4; i++) { 104 104 result4[i] = -1; 105 // raypack.SetObject(i, NULL); 105 106 raypack.SetLoc(i, origin4[i]); 106 107 raypack.SetDir(i, direction4[i]); … … 110 111 // a particular ASDS, otherwise it is emulated by decomposition 111 112 // 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); 113 115 114 116 for (int i = 0; i < 4; i++) { … … 131 133 sray.mOrigin = origin4[i]; 132 134 sray.mDirection = direction4[i]; 133 mKtbtree->FindNearestI(sray, boxmin,boxmax);135 mKtbtree->FindNearestI(sray, (Vector3&)boxmin, (Vector3&)boxmax); 134 136 if (SimpleRay::IntersectionRes[0].intersectable) { 135 137 // This is object ID - is this the triangle index ???
Note: See TracChangeset
for help on using the changeset viewer.