Updated 18 Aug 2009
Ray/triangle intersection using the algorithm proposed by Möller and Trumbore (1997). The zip file includes one example of intersection.
 "Real Time Rendering". Third Edition.
Tomas Akenine-Möller, Eric Haines and Naty Hoffman.
A. K. Peters, Ltd. 2008 (Section 16.8)
 "Fast, minimum storage ray-triangle intersection".
Tomas Möller and Ben Trumbore.
Journal of Graphics Tools, 2(1):21--28, 1997.
 Other algorithms:
Jesús P. Mena-Chalco (2023). Ray/Triangle Intersection (https://www.mathworks.com/matlabcentral/fileexchange/25058-ray-triangle-intersection), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired: Ray/box Intersection, A fast voxel traversal algorithm for ray tracing, Triangle/Ray Intersection, Hardware accelerated ray-triangle intersection
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.