Shape comparison algorithm
Normalize the target polygon so that it fits within a bounding box of pre-defined size
Triangulate zone between the outer and inner polygons
Eliminate the triangles according to some criteria (snapping)
Among triangles which can be eliminated, pick the one with largest area