Ray-triangle intersection (source code)

= Ray-triangle intersection

A <ray-plane intersection> followed by an inside-<triangle> test, conveniently using nonnegative <barycentric coordinates>. Oriented surfaces may additionally require a front-facing hit through <back-face culling>.