Dear experts,
I wanted to ask if there is an optimized code within VTK that returns the 1D coordinate of the intersection of a directional ray within a box, with the box itself.
Something like explained here: https://people.csail.mit.edu/amy/papers/box-jgt.pdf
I took a look at vtkBox::IntersectWithLine but at first glance it seems suboptimal for my application, since it returns two intersection values (ray is bidirectional there).
Thanks a lot for the reply, that function seems closer to what I was looking for.
However I ended up with an own implementation, since in the case the starting point is “inside” the bounding box surface, I want the algorithm to look for the distance to the next intersection.