Project Chrono: chrono::ChRayTest Class Reference

Classes | Public Member Functions | List of all members
chrono::ChRayTest Class Reference
Chrono::Engine » Collision detection » Multicore collision detection

## 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.
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
  info | [output] test result info

The documentation for this class was generated from the following files:

- D:/W/B/src/chrono-9.0.1/src/chrono/collision/multicore/ChRayTest.h
- D:/W/B/src/chrono-9.0.1/src/chrono/collision/multicore/ChRayTest.cpp