@Override
    public void write(JmeExporter e) throws IOException {
        super.write(e);
        OutputCapsule capsule = e.getCapsule(this);
        capsule.write(circleSamples, "circleSamples", 0);
        capsule.write(radialSamples, "radialSamples", 0);
        capsule.write(innerRadius, "innerRadius", 0);
        capsule.write(outerRadius, "outerRadius", 0);
    }
Rebuilds this torus based on a new set of parameters.

@param circleSamples the number of samples along the circles.
@param radialSamples the number of samples along the radial.
@param innerRadius minor radius of the torus
@param outerRadius major radius of the torus
jme3-core/src/main/java/com/jme3/scene/shape/Torus.java