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

@param p the x/z oscillation.
@param q the y oscillation.
@param radius the radius of the PQTorus.
@param width the width of the torus.
@param steps the steps along the torus.
@param radialSamples radial samples for the torus.
jme3-core/src/main/java/com/jme3/scene/shape/PQTorus.java