Amg: automated mesh generation for forming simulation