setNeedsRefresh(true);
    public void setApplyFunction(int applyFunction) {        if(applyFunction < 0 || applyFunction > 1) {            applyFunction = AF_PER_VERTEX;        }        this.applyFunction = applyFunction;    }