Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在光线/盒子相交的上下文中,“有效的相交区间”到底是什么?我一直在搜索不同的教程,但似乎他们似乎大多认为这是先验知识。
只是一个猜测。将射线视为无限延伸的线。如果光线与长方体相交,则相交将作为该直线上的一个间隔发生。间隔的一端是它进入盒子的地方,另一端是它离开盒子的地方。在某些退化的情况下,所讨论的间隔可能会减少到一个点,其中光线刚好穿过盒子的边缘或顶点。
它们是剪裁距离。如果您不想剪裁任何东西,可以将它们设置为正无穷和负无穷。