Finding the thickness of a 3d object using TriangleRayIntersection ?

1 view (last 30 days)
Hi guys. I am trying to find the thickness of an object using rays. I have a problem and I could not find the debug yet so I just wanted to see if any of you can help me. I am basically shooting a ray through an object and calculating the thickness. I am using TriangleRayIntersection.m code and I have origin point, direction point and vert1 vert2 vert3. My code shoots the ray through the surface however the calculation is being missed or misplaced . It never gives me the thickness where the ray goes through. Here is the the picture, I would appreciate if I get any help through this issue. Thanks

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!