Function polyLineFromCurve