@Override
    public void read(JmeImporter importer) throws IOException {
        super.read(importer);
        InputCapsule capsule = importer.getCapsule(this);
        axisSamples = capsule.readInt("axisSamples", 0);
        radialSamples = capsule.readInt("radialSamples", 0);
        radius = capsule.readFloat("radius", 0);
        radius2 = capsule.readFloat("radius2", 0);
        height = capsule.readFloat("height", 0);
        closed = capsule.readBoolean("closed", false);
        inverted = capsule.readBoolean("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