public void setType(SplineType type) {
        this.type = type;
        this.computeTotalLength();
    }
Sets the type of the spline

@param type Linear/CatmullRom/Bezier/Nurb
jme3-core/src/main/java/com/jme3/math/Spline.java