public void clearControlPoints() {
        controlPoints.clear();
        totalLength = 0;
    }
remove the controlPoint from the spline

@param controlPoint the controlPoint to remove
jme3-core/src/main/java/com/jme3/math/Spline.java