How can I find the intersection between a line and a 3D surface?
Show older comments
Hi guys, I am facing a ray tracing problem and now I am a bit locked. My target is to find the point of intersection (Xp, Yp, Zp) between a straight line of which I know the equation and a surface in 3 dimensions that is not defined analytically but consists in a series of n points in the 3 dimensions. Does anyone have any suggestion? Thanks in advance for your help,
Leonardo
2 Comments
jabrie
on 22 Jul 2018
Did you find an efficient solution to solve this problem? I am currently looking for a ray-triangle intersection solution. Unfortunately, my surface model consists of several million triangular meshes. Therefore, the intersection calculation of a ray with all available 3D triangles is not efficient enough. What is your starting point for this problem?
Leonardo Colavitti
on 24 Jul 2018
Accepted Answer
More Answers (1)
Subhosit Ray
on 30 May 2018
1 vote
Just like the famous yoda said the matrix exists only in your mind ^_^
but another cool way to find the surface is using fit() function.
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!