Accurate simulation of optical images of lines and trenches placed on semiconductors are of great interest to industry, especially in the overlay process. Similarly, optical images of photomasks in the transmission mode are also of interest. The basic