A mask is prepared by processing design data with various combinations of rule-based
and model-based optical proximity correction. In one embodiment, the design data
is first processed with a set of optical proximity correction rules to produce
a rule-corrected design. The rule-corrected design is examined to identify a set
of features to process with model-based optical proximity correction. Then, the
set of features are processed with the model-based optical proximity correction.