Added to Favorites

Related Searches

Nearby Words

In the mathematical field of numerical analysis, a Bézier curve is a parametric curve important in computer graphics and related fields.
Generalizations of Bézier curves to higher dimensions are called Bézier surfaces, of which the Bézier triangle is a special case.## Applications

### Computer graphics

### Animation

In animation applications, such as Adobe Flash and Adobe Shockwave, or in applications like Game Maker, Bézier curves are used to outline, for example, movement. Users outline the wanted path in Bézier curves, and the application creates the needed frames for the object to move along the path.
## Examination of cases

### Linear Bézier curves

Given points P_{0} and P_{1}, a linear Bézier curve is simply a straight line between those two points. The curve is given by### Quadratic Bézier curves

A quadratic Bézier curve is the path traced by the function B(t), given points P_{0}, P_{1}, and P_{2},
### Cubic Bézier curves

Four points P_{0}, P_{1}, P_{2} and P_{3} in the plane or in three-dimensional space define a cubic Bézier curve.
The curve starts at P_{0} going toward P_{1} and arrives at P_{3} coming from the direction of P_{2}. Usually, it will not pass through P_{1} or P_{2}; these points are only there to provide directional information. The distance between P_{0} and P_{1} determines "how long" the curve moves into direction P_{2} before turning towards P_{3}.## Generalization

The Bézier curve of degree $n$ can be generalized as follows. Given points P_{0}, P_{1},..., P_{n}, the Bézier curve is### Terminology

Some terminology is associated with these parametric curves. We have
^{0} = 1 and (1 - t)^{0} = 1.## Constructing Bézier curves

### Linear curves

### Quadratic curves

For quadratic Bézier curves one can construct intermediate points Q_{0} and Q_{1} such that as t varies from 0 to 1:

### Higher-order curves

For higher-order curves one needs correspondingly more intermediate points. For cubic curves one can construct intermediate points Q_{0}, Q_{1} & Q_{2} that describe linear Bézier curves, and points R_{0} & R_{1} that describe quadratic Bézier curves:

## Polynomial form

## Rational Bézier curves

The rational Bézier adds adjustable weights to provide closer approximations to arbitrary shapes. The numerator is a weighted Bernstein-form Bézier curve and the denominator is a weighted sum of Bernstein polynomials.## See also

## References

## External links

Bézier curves were widely publicized in 1962 by the French engineer Pierre Bézier, who used them to design automobile bodies. The curves were first developed in 1959 by Paul de Casteljau using de Casteljau's algorithm, a numerically stable method to evaluate Bézier curves.

In vector graphics, Bézier curves are an important tool used to model smooth curves that can be scaled indefinitely. "Paths," as they are commonly referred to in image manipulation programs such as Inkscape, Adobe Illustrator, Adobe Photoshop, and GIMP are combinations of Bézier curves patched together. Paths are not bound by the limits of rasterized images and are intuitive to modify. Bézier curves are also used in animation as a tool to control motion in applications such as Adobe Flash, Adobe After Effects, and Autodesk 3ds max.

Bézier curves are widely used in computer graphics to model smooth curves. As the curve is completely contained in the convex hull of its control points, the points can be graphically displayed and used to manipulate the curve intuitively. Affine transformations such as translation, scaling and rotation can be applied on the curve by applying the respective transform on the control points of the curve.

Quadratic and cubic Bézier curves are most common; higher degree curves are more expensive to evaluate. When more complex shapes are needed, low order Bézier curves are patched together. This is commonly referred to as a "path" in programs like Adobe Illustrator or Inkscape. These poly-Bézier curves can also be seen in the SVG file format. To guarantee smoothness, the control point at which two curves meet and one control point on either side must be collinear.

The simplest method for scan converting (rasterizing) a Bézier curve is to evaluate it at many closely spaced points and scan convert the approximating sequence of line segments. However, this does not guarantee that the rasterized output looks sufficiently smooth, because the points may be spaced too far apart. Conversely it may generate too many points in areas where the curve is close to linear. A common adaptive method is recursive subdivision, in which a curve's control points are checked to see if the curve approximates a line segment to within a small tolerance. If not, the curve is subdivided parametrically into two segments, 0 ≤ t ≤ 0.5 and 0.5 ≤ t ≤ 1, and the same procedure is applied recursively to each half. There are also forward differencing methods, but great care must be taken to analyse error propagation. Analytical methods where a spline is intersected with each scan line involve finding roots of cubic polynomials (for cubic splines) and dealing with multiple roots, so they are not often used in practice.

- $mathbf\{B\}(t)=mathbf\{P\}\_0\; +\; t(mathbf\{P\}\_1-mathbf\{P\}\_0)=(1-t)mathbf\{P\}\_0\; +\; tmathbf\{P\}\_1\; mbox\{\; ,\; \}\; t\; in\; [0,1]$

- $mathbf\{B\}(t)\; =\; (1\; -\; t)^\{2\}mathbf\{P\}\_0\; +\; 2t(1\; -\; t)mathbf\{P\}\_1\; +\; t^\{2\}mathbf\{P\}\_2\; mbox\{\; ,\; \}\; t\; in\; [0,1].$

A quadratic Bézier curve is also a parabolic segment.

TrueType fonts use Bézier splines composed of quadratic Bézier curves.

The parametric form of the curve is:

- $mathbf\{B\}(t)=(1-t)^3mathbf\{P\}\_0+3t(1-t)^2mathbf\{P\}\_1+3t^2(1-t)mathbf\{P\}\_2+t^3mathbf\{P\}\_3\; mbox\{\; ,\; \}\; t\; in\; [0,1].$

Modern imaging systems like PostScript, Asymptote and Metafont use Bézier splines composed of cubic Bézier curves for drawing curved shapes.

- $mathbf\{B\}(t)=sum\_\{i=0\}^n\; \{nchoose\; i\}(1-t)^\{n-i\}t^imathbf\{P\}\_i\; =(1-t)^nmathbf\{P\}\_0+\{nchoose\; 1\}(1-t)^\{n-1\}tmathbf\{P\}\_1+cdots+t^nmathbf\{P\}\_n\; mbox\{\; ,\; \}\; t\; in\; [0,1].$

For example, for $n=5$:

- $mathbf\{B\}(t)=(1-t)^5mathbf\{P\}\_0+5t(1-t)^4mathbf\{P\}\_1+10t^2(1-t)^3mathbf\{P\}\_2+10t^3(1-t)^2mathbf\{P\}\_3+5t^4(1-t)mathbf\{P\}\_4+t^5mathbf\{P\}\_5\; mbox\{\; ,\; \}\; t\; in\; [0,1].$

This formula can be expressed recursively as follows:
Let $mathbf\{B\}\_\{mathbf\{P\}\_0mathbf\{P\}\_1ldotsmathbf\{P\}\_n\}$ denote the Bézier curve determined by the points P_{0}, P_{1},..., P_{n}. Then

- $mathbf\{B\}(t)\; =\; mathbf\{B\}\_\{mathbf\{P\}\_0mathbf\{P\}\_1ldotsmathbf\{P\}\_n\}(t)\; =\; (1-t)mathbf\{B\}\_\{mathbf\{P\}\_0mathbf\{P\}\_1ldotsmathbf\{P\}\_\{n-1\}\}(t)\; +\; tmathbf\{B\}\_\{mathbf\{P\}\_1mathbf\{P\}\_2ldotsmathbf\{P\}\_n\}(t)$

In words, the degree $n$ Bézier curve is a linear interpolation between two degree $n-1$ Bézier curves.

- $mathbf\{B\}(t)\; =\; sum\_\{i=0\}^n\; mathbf\{b\}\_\{i,n\}(t)mathbf\{P\}\_i,quad\; tin[0,1]$

- $mathbf\{b\}\_\{i,n\}(t)\; =\; \{nchoose\; i\}\; t^i\; (1-t)^\{n-i\},quad\; i=0,ldots\; n$

The points P_{i} are called control points for the Bézier curve. The polygon formed by connecting the Bézier points
with lines, starting with P_{0} and finishing with P_{n}, is called the Bézier polygon (or control polygon). The convex hull of the Bézier polygon contains the Bézier curve.

- The curve begins at P
_{0}and ends at P_{n}; this is the so-called endpoint interpolation property. - The curve is a straight line if and only if all the control points are collinear.
- The start (end) of the curve is tangent to the first (last) section of the Bézier polygon.
- A curve can be split at any point into 2 subcurves, or into arbitrarily many subcurves, each of which is also a Bézier curve.
- Some curves that seem simple, such as the circle, cannot be described exactly by a Bézier or piecewise Bézier curve (though a four-piece cubic Bézier curve can approximate a circle, with a maximum radial error of less than one part in a thousand, when each inner control point is the distance $frac\{4left(sqrt\; \{2\}-1right)\}\{3\}$ horizontally or vertically from an outer control point on a unit circle). More generally, an n-piece cubic Bézier curve can approximate a circle, when each inner control point is the distance $frac\{4\}\{3\}tan(t/4)$ from an outer control point on a unit circle, where t is 360/n degrees, and n>2.
- The curve at a fixed offset from a given Bézier curve, often called an offset curve (lying "parallel" to the original curve, like the offset between rails in a railroad track), cannot be exactly formed by a Bézier curve (except in some trivial cases). However, there are heuristic methods that usually give an adequate approximation for practical purposes.
- Every quadratic Bézier curve is also a cubic Bézier curve, and more generally, every degree n Bézier curve is also a degree m curve for any m > n. In detail, a degree n curve with control points P
_{0}, …, P_{n}is equivalent (including the parametrization) to the degree n + 1 curve with control points P'_{0}, …, P'_{n + 1}, where $mathbf\; P\text{'}\_k=tfrac\{k\}\{n+1\}mathbf\; P\_\{k-1\}+left(1-tfrac\{k\}\{n+1\}right)mathbf\; P\_k$.

] |

Animation of a linear Bézier curve, t in [0,1] |

The t in the function for a linear Bézier curve can be thought of as describing how far B(t) is from P_{0} to P_{1}. For example when t=0.25, B(t) is one quarter of the way from point P_{0} to P_{1}. As t varies from 0 to 1, B(t) describes a curved line from P_{0} to P_{1}.

- Point Q
_{0}varies from P_{0}to P_{1}and describes a linear Bézier curve. - Point Q
_{1}varies from P_{1}to P_{2}and describes a linear Bézier curve. - Point B(t) varies from Q
_{0}to Q_{1}and describes a quadratic Bézier curve.

style="border-bottom: 1px solid blue;" | ] | |

Construction of a quadratic Bézier curve | Animation of a quadratic Bézier curve, t in [0,1] |

style="border-bottom: 1px solid blue;" | ] | |

Construction of a cubic Bézier curve | Animation of a cubic Bézier curve, t in [0,1] |

For fourth-order curves one can construct intermediate points Q_{0}, Q_{1}, Q_{2} & Q_{3} that describe linear Bézier curves, points R_{0}, R_{1} & R_{2} that describe quadratic Bézier curves, and points S_{0} & S_{1} that describe cubic Bézier curves:

style="border-bottom: 1px solid silver;" | ] | |

Construction of a quartic Bézier curve | Animation of a quartic Bézier curve, t in [0,1] |

(See also a .)

Sometimes it is desirable to express the Bézier curve as a polynomial instead of a sum of less straightforward Bernstein polynomials. Application of the binomial theorem to the definition of the curve followed by some rearrangement will yield:

- $$

where

- $$

This could be practical if $mathbf\{C\}\_j$ can be computed prior to many evaluations of $mathbf\{B\}(t)$; however one should use caution as high order curves may lack numeric stability (de Casteljau's algorithm should be used if this occurs). Note that the product of no numbers is 1.

Given n + 1 control points P_{i}, the rational Bézier curve can be described by:

- $$

- $$

- Vector graphics
- de Casteljau's algorithm
- Spline (mathematics)
- NURBS
- String art - Bézier curves are also formed by many common forms of string art, where strings are looped across a frame of nails.
- Hermite curve

- Paul Bourke: Bézier Surfaces (in 3D), http://astronomy.swin.edu.au/~pbourke/curves/bezier/
- Donald Knuth: Metafont: the Program, Addison-Wesley 1986, pp. 123-131. Excellent discussion of implementation details; available for free as part of the TeX distribution.
- Dr Thomas Sederberg, BYU Bézier curves, http://www.tsplines.com/resources/class_notes/Bezier_curves.pdf
- J.D. Foley et al.: Computer Graphics: Principles and Practice in C (2nd ed., Addison Wesley, 1992)

- Don Lancaster's Cubic Spline Library describes how to approximate a circle (or a circular arc, or a hyperbola) by a Bézier curve; using cubic splines for image interpolation, and an explanation of the math behind these curves.
- Module for Bezier Curves by John H. Mathews
- Quadratic Bezier Curve Construction - An interactive applet showing how to construct a quadratic Bezier curve geometrically. (Requires Java.)
- Cubic Bezier Curve Construction - An interactive applet showing how to construct a cubic Bezier curve geometrically. (Requires Java.)
- Bezier / Parabola - An interactive applet showing the relationship between the quadratic Bezier curve and the parabola. (Requires Java.)
- PolyBezier - The Microsoft Win32 GDI API function, which draws Bezier curves in Windows graphic applications, like MS Paint.
- Finding All Intersections of Two Bezier Curves. - Locating all the intersections between two Bezier curves is a difficult general problem, because of the variety of degenerate cases. By Richard J. Kinch.
- SketchPad - A small program written in C and Win32 that implements the functionality to create and edit Bezier curves. Demonstrates also the use of de Casteljau's algorithm to split a Bezier curve.
- Bezier Curves interactive demo using ActionScript and FlashPlayer
- Drawing Cubic Bezier Curves explained by using Flash Actionscript
- Bezier Curves interactive applet
- 3rd order Bezier Curves applet
- Living Math Bézier applet
- Living Math Bézier applets of different spline types, JAVA programming of splines in An Interactive Introduction to Splines

Wikipedia, the free encyclopedia © 2001-2006 Wikipedia contributors (Disclaimer)

This article is licensed under the GNU Free Documentation License.

Last updated on Monday October 06, 2008 at 11:14:07 PDT (GMT -0700)

View this article at Wikipedia.org - Edit this article at Wikipedia.org - Donate to the Wikimedia Foundation

This article is licensed under the GNU Free Documentation License.

Last updated on Monday October 06, 2008 at 11:14:07 PDT (GMT -0700)

View this article at Wikipedia.org - Edit this article at Wikipedia.org - Donate to the Wikimedia Foundation

Copyright © 2014 Dictionary.com, LLC. All rights reserved.