Application of 3D fluxional function to metal forming