@Override
    public BoundingVolume mergeLocal(BoundingVolume volume) {
        if (volume == null) {
            return this;
        }

        switch (volume.getType()) {
            case AABB:
                BoundingBox vBox = (BoundingBox) volume;
                return mergeLocal(vBox.center, vBox.xExtent, vBox.yExtent,
                        vBox.zExtent);

            case Sphere:
                BoundingSphere vSphere = (BoundingSphere) volume;
                return mergeLocal(vSphere.center, vSphere.radius,
                        vSphere.radius, vSphere.radius);

//            case OBB: {
//                return mergeOBB((OrientedBoundingBox) volume);
//            }
            default:
                return null;
        }
    }
<code>mergeLocal</code> combines this bounding box locally with a second
bounding volume. The result contains both the original box and the second
volume.

@param volume the bounding volume to combine with this box (or null) (not
altered)
@return this box (with its components modified) or null if the second
volume is of some type other than AABB or Sphere
jme3-core/src/main/java/com/jme3/bounding/BoundingBox.java