Nd-Fe-B magnets for hexapolar field configuration