How to: Frustum Intersects another frustum?

1. A concise explanation of the problem you’re experiencing.

How to get intersections of 2 frustums ?

2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.

3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

Attached image is screenshot of RealityCapture project, where the pyramid symbol is photos’ camera info like orientation, rotation matrix, image size

Ideally we want to get if an image intersect another image, by using made-up frustum from orientation, rotation matrix and image size above.

4. The Cesium version you’re using, your operating system and browser.


There isn’t anything built-in to CesiumJS to compute this, but there are algorithms better explained elsewhere for computing the intersection of two convex polyhedra, which your frustums would be.