  The Fourier transform of the indicator function of arbitrary polygons and
polyhedra is computed for complex wavevectors. Using the divergence theorem and
Stokes' theorem, closed expressions are obtained. Apparent singularities, all
removable, are discussed in detail. Loss of precision due to cancellation near
the singularities can be avoided by using series expansions.
