Metal bending simulation with algorithm generator use this formula // x = x + step * (sin( Gamma *(y - xx) + sin( alpha * (y + beta * cos(y) )))) y = y + step * (sin( Gamma *(y + xx) - alpha * sin( xx + beta * cos(xx) )))