public void updateGeometry(int zSamples, int radialSamples, float radius, boolean useEvenSlices, boolean interior) {
        if (zSamples < 3) {
            throw new IllegalArgumentException("zSamples cannot be smaller than 3");
        }
        this.zSamples = zSamples;
        this.radialSamples = radialSamples;
        this.radius = radius;
        this.useEvenSlices = useEvenSlices;
        this.interior = interior;
        setGeometryData();
        setIndexData();
        setStatic();
    }
Changes the information of the sphere into the given values.

@param zSamples the number of zSamples of the sphere.
@param radialSamples the number of radial samples of the sphere.
@param radius the radius of the sphere.
jme3-core/src/main/java/com/jme3/scene/shape/Sphere.java