piecewise bezier curves