public FrustumIntersect contains(BoundingVolume bound) {
        if (bound == null) {
            return FrustumIntersect.Inside;
        }

        int mask;
        FrustumIntersect rVal = FrustumIntersect.Inside;

        for (int planeCounter = FRUSTUM_PLANES; planeCounter >= 0; planeCounter--) {
            if (planeCounter == bound.getCheckPlane()) {
                continue; // we have already checked this plane at first iteration
            }
            int planeId = (planeCounter == FRUSTUM_PLANES) ? bound.getCheckPlane() : planeCounter;
//            int planeId = planeCounter;

            mask = 1 << (planeId);
            if ((planeState & mask) == 0) {
                Plane.Side side = bound.whichSide(worldPlane[planeId]);

                if (side == Plane.Side.Negative) {
                    //object is outside of frustum
                    bound.setCheckPlane(planeId);
                    return FrustumIntersect.Outside;
                } else if (side == Plane.Side.Positive) {
                    //object is visible on *this* plane, so mark this plane
                    //so that we don't check it for sub nodes.
                    planeState |= mask;
                } else {
                    rVal = FrustumIntersect.Intersects;
                }
            }
        }

        return rVal;
    }
Tests a bounding volume against the planes of the
camera's frustum. The frustum's planes are set such that the normals all
face in towards the viewable scene. Therefore, if the bounding volume is
on the negative side of the plane is can be culled out.

NOTE: This method is used internally for culling, for public usage,
the plane state of the camera must be saved and restored, e.g:
<code>BoundingVolume bv;<br>
Camera c;<br>
int planeState = c.getPlaneState();<br>
c.setPlaneState(0);<br>
c.contains(bv);<br>
c.setPlaneState(plateState);<br>
</code>

@param bound the bound to check for culling
@return See enums in <code>FrustumIntersect</code>
jme3-core/src/main/java/com/jme3/renderer/Camera.java