1. A method for calculating an edge-based proximity correction which is applied to a region in the proximity of an evaluation point, the method comprising: receiving a layout; decomposing polygons in the layout into edges; computing contributions of the edges to the edge-based proximity correction; and computing the edge-based proximity correction based on the contributions of the edges.