Contour Operation

Hi
-i have contours with equal specific vertically distance from a mesh.
-i need to limit maximum furthest horizontally distance between neighbor’s contours by a tolerance.
-my solution is to add enough tween or increase contours in that area to the list of contours until “not to have any two neighbor contour with maximum projected Curve Proximity distance more than the desired tolerance”.
Curve Proximity will find the closest point and i need the furthest point if my algorithm is the go way.
i also try to have a factor that affect sine height of upper and lower contours outside of these new tween to prevent big step due to reduced height in that range.
please help me how can i implement this
thanks in advance

if some one reach there , first solution was: use Maximum Inscribed Circle