TOPICS
Search

Bézier Curve


Bezier

A Bézier curve (or Bernstein-Bézier curve) determined by n+1 control points P_0, P_1, ..., P_n is given by

 C(t)=sum_(i=0)^nP_iB_(i,n)(t),
(1)

where B_(i,n)(t) is a Bernstein polynomial and t in [0,1]. Bézier splines are implemented in the Wolfram Language as BezierCurve[pts].

The de Casteljau algorithm evaluates the curve by repeated linear interpolation (Farin 1993). Starting with P_i^((0))=P_i, form

 P_i^((j))=(1-t)P_i^((j-1))+tP_(i+1)^((j-1))  for j=1,...,n and i=0,...,n-j.
(2)

The final point P_0^((n)) is C(t).

A "rational" Bézier curve is defined by

 C(t)=(sum_(i=0)^(n)B_(i,p)(t)w_iP_i)/(sum_(i=0)^(n)B_(i,p)(t)w_i),
(3)

where p is the order, B_(i,p) are the Bernstein polynomials, P_i are control points, and the weight w_i of P_i is the last ordinate of the homogeneous point P_i^w. These curves are closed under perspective transformations, and can represent conic sections exactly.

The Bézier curve always passes through the first and last control points and lies within the convex hull of the control points. The curve is tangent to P_1-P_0 and P_n-P_(n-1) at the endpoints. The "variation diminishing property" of these curves is that no line can have more intersections with a Bézier curve than with the curve obtained by joining consecutive points with straight line segments. A desirable property of these curves is that the curve can be translated and rotated by performing these operations on the control points.

Undesirable properties of Bézier curves are their numerical instability for large numbers of control points, and the fact that moving a single control point changes the global shape of the curve. The former is sometimes avoided by smoothly patching together low-order Bézier curves. A generalization of the Bézier curve is the B-spline.

In the polynomial case, a cubic Bézier curve whose control points are not all collinear can have a self-intersection only if it is a plane curve. Every such self-intersecting curve is an invertible affine transformation of a segment of the Tschirnhausen cubic (Saito et al. 2014, Sánchez-Reyes 2024).


See also

B-Spline, NURBS Curve, Spline, Tschirnhausen Cubic

Explore with Wolfram|Alpha

References

Bartels, R. H.; Beatty, J. C.; and Barsky, B. A. "Bézier Curves." Ch. 10 in An Introduction to Splines for Use in Computer Graphics and Geometric Modelling. San Francisco, CA: Morgan Kaufmann, pp. 211-245, 1998.Boehm, W. and Müller, A. "On de Casteljau's Algorithm." Comput. Aided Geom. Des. 16, 587-605, 1999. https://doi.org/10.1016/S0167-8396(99)00023-0.Delgado, J.; Mainar, E.; and Peña, J. M. "On the Accuracy of de Casteljau-Type Algorithms and Bernstein Representations." Comput. Aided Geom. Des. 106, 102243, 2023. https://doi.org/10.1016/j.cagd.2023.102243.Farin, G. "The de Casteljau Algorithm." Ch. 5 in Curves and Surfaces for Computer Aided Geometric Design, 3rd ed. San Diego, CA: Academic Press, pp. 29-40, 1993. https://doi.org/10.1016/B978-0-12-249052-1.50008-8.Ferréol, R. "Bézier Curve." MathCurve. https://mathcurve.com/courbes2d.gb/bezier/bezier.shtml.Ferréol, R. "Rational Bézier Curves." MathCurve. https://mathcurve.com/courbes2d.gb/bezierrationnelle/bezierrationnelle.shtml.Piegl, L. Fundamental Developments of Computer Aided Geometric Design. San Diego, CA: Academic Press, 1993.Saito, T.; Yamada, M.; and Yoshida, N. "Shape Analysis of Cubic Bézier Curves-Correspondence to Four Primitive Cubics." Comput.-Aided Design Appl. 11, 568-578, 2014. https://doi.org/10.1080/16864360.2014.902690.Sánchez-Reyes, J. "Self-Intersections of Cubic Bézier Curves Revisited." Mathematics 12, 2463, 2024. https://doi.org/10.3390/math12162463.Shene, C.-K. "Introduction to Computing with Geometry Notes. Unit 5: Bézier Curves." https://pages.mtu.edu/~shene/COURSES/cs3621/NOTES/.

Referenced on Wolfram|Alpha

Bézier Curve

Cite this as:

Weisstein, Eric W. "Bézier Curve." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/BezierCurve.html

Subject classifications