This paper presents a novel approach for incorporating non-cuboidal and rotated cuboidal sources of magnetic field in 3-D Fourier modeling. Based on the periodicity present in the geometry, a Fourier integral is applied in two directions. By changing the integration boundaries in the y-direction to a linear function of the x-direction, non-ideally shaped magnetic field sources (i.e. coils and permanent magnets) are incorporated. From the electromagnetic example geometries analyzed in this paper, the magnetic field as derived with 3-D Fourier is over 99 [%] accurate compared to 3-D finite element models