An improved return-mapping scheme for nonsmooth plastic potentials: PART I - the Haigh-Westergaard coordinates