A tool for optimizing the layout of a microdevice adds fragmentation
points to polygons in a first hierarchical database layer in a manner
suitable for application of a tool to apply a resolution enhancement
technique (RET) such as optical and process correction (OPC). Portions of
polygons in a database level that interact with polygons of a second
level in the database are promoted to the second database level, and
refragmented. The RET operates on the polygons of the first and second
levels of the database to determine how polygons of each of the first and
second levels should be adjusted, if necessary, such that the layout is
optimized.