Remesh area upgrade

Mesh gradation has been added near the boundary of the remeshed area.

This minimizes the number of elements with a high aspect ratio.

The algorithm has also been updated so that contact surfaces are not unexpectedly merged.