The role of close passages of galaxies and the asymmetry of their dark haloes in the formation of their spiral patterns