chrono::ChRayTest Class Reference
Description
Class for performing ray intersection tests.
#include <ChRayTest.h>
Classes | |
| struct | RayHitInfo |
| Information on ray intersection test result. More... | |
Public Member Functions | |
| ChRayTest (std::shared_ptr< ChCollisionData > data) | |
| bool | Check (const real3 &start, const real3 &end, RayHitInfo &info) |
| Check for intersection of the given ray with all collision shapes in the system. More... | |
| uint | GetNumBinTests () const |
| Return the number of bins visited by the DDA algorithm during the last ray test. | |
| uint | GetNumShapeTests () const |
| Return the number of ray-shape checks required by the last ray test. | |
Member Function Documentation
◆ Check()
| bool chrono::ChRayTest::Check | ( | const real3 & | start, |
| const real3 & | end, | ||
| RayHitInfo & | info | ||
| ) |
Check for intersection of the given ray with all collision shapes in the system.
Uses a variant of the 3D Digital Differential Analyser (Akira Fujimoto, "ARTS: Accelerated Ray Tracing Systems", 1986) to efficiently traverse the broadphase grid and analytical shape-ray intersection tests.
- Parameters
-
start ray start point end ray end point [out] info test result info
The documentation for this class was generated from the following files:
- /builds/uwsbel/chrono/src/chrono/collision/multicore/ChRayTest.h
- /builds/uwsbel/chrono/src/chrono/collision/multicore/ChRayTest.cpp