private Polyline reposition_lines(Polyline p_polyline){
  if (p_polyline.plaline_len() < 5)   return p_polyline;
  PlaLineIntAlist line_arr=p_polyline.alist_copy(0);
  for (int index=2; index < p_polyline.plaline_len(-2); ++index) {
    PlaLineInt new_line=reposition_line(line_arr,index);
    if (new_line == null)     continue;
    line_arr.set(index,new_line);
    Polyline result=new Polyline(line_arr);
    return skip_segments_of_length_0(result);
  }
  return p_polyline;
}

private Polyline reposition_lines ( Polyline p_polyline ) { if ( p_polyline . plaline_len ( ) < 5 ) return p_polyline ; PlaLineIntAlist line_arr = p_polyline . alist_copy ( 0 ) ; for ( int index = 2 ; index < p_polyline . plaline_len ( - 2 ) ; ++ index ) { PlaLineInt new_line = reposition_line ( line_arr , index ) ; if ( new_line == null ) continue ; line_arr . set ( index , new_line ) ; Polyline result = new Polyline ( line_arr ) ; return skip_segments_of_length_0 ( result ) ; } return p_polyline ; }
tries to shorten p_polyline by relocating its lines this is overridden in any angle ( not used ) and instead used in 45 degrees
