BRL-CAD
Triangle/Ray Intersection Tests
Collaboration diagram for Triangle/Ray Intersection Tests:

Functions

int bg_isect_tri_ray (const point_t orig, const point_t dir, const point_t vert0, const point_t vert1, const point_t vert2, point_t *isect)
 Möller & Trumbore's triangle/ray intersection test. More...
 

Detailed Description

Function Documentation

◆ bg_isect_tri_ray()

int bg_isect_tri_ray ( const point_t  orig,
const point_t  dir,
const point_t  vert0,
const point_t  vert1,
const point_t  vert2,
point_t isect 
)

Möller & Trumbore's triangle/ray intersection test.

From the article

"Fast, Minimal Storage Ray-Triangle Intersection", Journal of Graphics Tools, 2(1):21-28, 1997