1. A method of preparing a layout file defining features to be created via a photolithographic process for optical and process correction, comprising: reading at least a portion of a file defining one or more features to be created; fragmenting the features into a number of edge fragments; defining initial simulation sites for one or more of the edge fragments; estimating an image intensity at the initial simulation sites; and adjusting one or more of the initial simulation sites based on the estimated image intensity.