Function sampleBezierCurveForBounds