@Override
    public void write(JmeExporter e) throws IOException {
        super.write(e);
        OutputCapsule capsule = e.getCapsule(this);
        capsule.write(axisSamples, "axisSamples", 0);
        capsule.write(radialSamples, "radialSamples", 0);
        capsule.write(radius, "radius", 0);
        capsule.write(radius2, "radius2", 0);
        capsule.write(height, "height", 0);
        capsule.write(closed, "closed", false);
        capsule.write(inverted, "inverted", false);
    }
Rebuilds the cylinder based on a new set of parameters.

@param axisSamples The number of vertices samples along the axis.
    It is equal to the number of segments + 1; so
    that, for instance, 4 samples mean the cylinder will be made of 3 segments.
@param radialSamples The number of triangle samples along the radius.
    For instance, 4 means that the sides of the
    cylinder are made of 4 rectangles, and the top and bottom are made of 4 triangles.
@param topRadius the radius of the top of the cylinder.
@param bottomRadius the radius of the bottom of the cylinder.
@param height the cylinder's height.
@param closed should the cylinder have top and bottom surfaces.
@param inverted is the cylinder is meant to be viewed from the inside.
jme3-core/src/main/java/com/jme3/scene/shape/Cylinder.java