Changeset 2575 for GTP/trunk/Lib/Vis/Preprocessing/src/RayCaster.cpp
- Timestamp:
- 01/03/08 15:53:44 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/RayCaster.cpp
r2539 r2575 270 270 int 271 271 RayCaster::ProcessRay(const SimpleRay &simpleRay, 272 273 274 275 276 277 272 Intersection &hitA, 273 Intersection &hitB, 274 VssRayContainer &vssRays, 275 const AxisAlignedBox3 &box, 276 const bool castDoubleRay, 277 const bool pruneInvalidRays) 278 278 { 279 279 int hits = 0; … … 325 325 Debug<<"PR2"<<flush; 326 326 #endif 327 328 // VH - I do not know what this is for, commented out temporarily 329 // !!!!!!!!!!!!!! !!!!!!!!!!!! !!!!!!!!!! 330 #if 1 327 331 const bool validSample = true; 328 332 if (validSample) { … … 363 367 { 364 368 VssRay *vssRay = RequestRay( 365 366 367 368 369 370 371 369 clipA, 370 hitB.mPoint, 371 hitA.mObject, 372 hitB.mObject, 373 mPreprocessor.mPass, 374 1.0f //simpleRay.mPdf 375 ); 372 376 373 377 if (validB) … … 383 387 Debug<<"PR4"<<flush; 384 388 #endif 385 } 389 } // validSample 390 #else 391 // Just pass if intersected or not 392 hits = (hitA.mObject != 0) ? 1 : 0; 393 intersect = hitA; 394 #endif 386 395 387 396 return hits; … … 391 400 void 392 401 RayCaster::CastRays( 393 394 395 396 397 398 { 399 400 401 402 403 404 405 406 407 408 409 } 410 } 411 412 413 } 402 SimpleRayContainer &rays, 403 VssRayContainer &vssRays, 404 const AxisAlignedBox3 &sbox, 405 const bool castDoubleRay, 406 const bool pruneInvalidRays ) 407 { 408 SimpleRayContainer::const_iterator rit, rit_end = rays.end(); 409 410 for (rit = rays.begin(); rit != rit_end; ++ rit) { 411 412 CastRay( 413 *rit, 414 vssRays, 415 sbox, 416 castDoubleRay, 417 pruneInvalidRays); 418 } 419 } 420 421 422 }
Note: See TracChangeset
for help on using the changeset viewer.