how to find where a line's crossing a box
in
Programming Questions
•
3 years ago
I'm programming a little 3d-software and have got lines there. I want them to be shown as long as the points are in a "virtual" box. So I can find the intersection points of the line and this box. (6 planes) this is no problem and I can display these points. But there's the problem that the lines have more than two intersection points, so you can't say which are the "true" ones. I 'm looking for these points that really are intersection points of this box and not with the whole plane..
so is there an easy idea? I solved the problem of finding the points (easily) with the coordinate equation but now I'm stuck..
thanks for your answers..
1