ofPolyline resampling preserves last point