1. A method of performing model-based optical proximity correction comprising: calculating a finite integral for each sector of a mask polygon having defined corners to determine sector contributions from vertices of said mask polygon; integrating on a finite shape in said sector; summing up the contribution of said sectors of said mask polygon; and calculating interaction effects from said finite integral calculation.