polyline from bezier curve