double blend(int k, int t, K_NOT u, double v){ // calculate the blending value double value; if (t==1){ if ((u[k]<=v) && (v=1) t=0.99999; for (int j=0; j