Given in three-dimensional space, a truncated pyramid and a parallelepiped. The coordinates of the vertices of each object are known. How to check if there is a parallelepiped in a truncated pyramid, does it cross, or is it outside?

This is how the frustum culling task is summarized, only the difference is that I know only such things: the coordinates of the vertices.

I found this document here, but have not yet mastered it http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.2.1491&rep=rep1&type=pdf

  • The visibility of the camera is not really a pyramid, since it extends into the distance indefinitely. I can make an answer from the point of view of the indicated application, if the question is still relevant , since it is just so lazy to do this. - Incnis Mrsi
  • @IncnisMrsi The visibility of the camera is almost always a truncated pyramid, because we set the near / far cut plane so that we have a sane range of depth values. - Kromster

0