How to Select the Shapes of Neodymium Magnets?