s="comment">%% approximation, find the point with maximal distance and</span>
0050     <span class="comment">%% get figure of merit for current straight-line approximation</span>
0051 
0052     dists = abs(a*c_x + b*c_y + c);
0053     [md,ind] = max(dists(2:end-1));
0054     md = max(md,2);
0055     merit_here = (length_here)/md;
0056     
0057     <span class="comment">%% go on, and do the same thing for the subsegments</span>
0058     ind = ind+1;    
0059     left_relative  = <a href="PSLz3aI_recursive_b