Bounding box intersection with camera frustum

I cannot find a method that would help to check if the camera’s frustum is intersecting with some bounding box. Using bounding spheres is not very useful in by case as I have boxes. So could you help me figure out how to calculate is a bounding box is intersecting with the camera’s frustum?

I already used this method “.onPostCull” as below,

this.lmt_r = this.app.root.findByName("Limit_Right");
this.meshInstance_r = this.lmt_r.render.meshInstances[0];

// Evaluate visibility of elements
this.app.scene.layers.getLayerByName("World").onPostCull = (cameraIndex) => {
    // Element visibility
    if(!this.meshInstance_r.visibleThisFrame) {
        // this mesh is not VISIBLE
    }
}
1 Like