Planetary nebula
Only about twenty percent of planetary nebulae are spheres (like Abell 39). The rest of them have various shapes. The reason for these shapes is not understood. It may be because of the gravitational pull of secondary stars (for example, if it is a binary star system). A second theory is that planets near the star might change how the nebula forms. A third theory is that magnetic fields cause the shapes.  .