How to determine the 3D points if the ray intersects the the voxel that is perpendicular to Y axis?

1 view (last 30 days)
Amit Chakraborty
Amit Chakraborty on 6 Jan 2022
Edited: Matt J on 6 Jan 2022
Here the line AB is intersecting the voxel perpendicularly on the Y-axis. How can I determine all the three points (3D poins) x.y.z in this manner? Thanks in advance.
  1 Comment
Matt J
Matt J on 6 Jan 2022
determine all the three points
Why 3 points? I see only 2 points (one entry point and one exit point), as you would expect for any convex shape.

Sign in to comment.

Answers (1)

Matt J
Matt J on 6 Jan 2022
Edited: Matt J on 6 Jan 2022
You can find ray/box intersections using intersectionHull in this File Exchange package
However, if you are doing this for the purpose of tomographic forward projection, your only hope for fast speed is to use an optimized projector library, e.g.,

Community Treasure Hunt

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

Start Hunting!