Implemented functionality to create spheres in addition to cuboids in the particle generator.