public static void getGeometriesInLightRadius(GeometryList inputGeometryList,
            Camera[] cameras,
            GeometryList outputGeometryList) {
        for (int i = 0; i < inputGeometryList.size(); i++) {
            Geometry g = inputGeometryList.get(i);
            boolean inFrustum = false;
            for (int j = 0; j < cameras.length && inFrustum == false; j++) {
                Camera camera = cameras[j];
                int planeState = camera.getPlaneState();
                camera.setPlaneState(0);
                inFrustum = camera.contains(g.getWorldBound()) != Camera.FrustumIntersect.Outside;
                camera.setPlaneState(planeState);
            }
            if (inFrustum) {
                outputGeometryList.add(g);
            }
        }

    }
Populates the outputGeometryList with the geometry of the
inputGeometryList that are in the radius of a light.
The array must contain 6 cameras, initialized to represent the viewspace of a point light.

@param inputGeometryList The list containing all geometries to check
against the camera frustum
@param cameras the camera array to check geometries against
@param outputGeometryList the list of all geometries that are in the
camera frustum
jme3-core/src/main/java/com/jme3/shadow/ShadowUtil.java