Specific configurations of horizontal and vertical bending magnets are given that, when acting on the spin polarization vector of a particle beam, generate a group of 24 operators isomorphic to the group of rotational symmetries of a cube, known as the octahedral group. Some of these configurations have the feature of converting transversely polarized beams to longitudinally polarized beams (or...