Presentation is loading. Please wait.

Presentation is loading. Please wait.

AN INTRODUCTION BEZIER CURVES. AN INTRODUCTION BEZIER CURVES Bezier was an engineer with the Renault car company and set out in the early 1960's to develop.

Similar presentations


Presentation on theme: "AN INTRODUCTION BEZIER CURVES. AN INTRODUCTION BEZIER CURVES Bezier was an engineer with the Renault car company and set out in the early 1960's to develop."— Presentation transcript:

1 AN INTRODUCTION BEZIER CURVES

2 AN INTRODUCTION BEZIER CURVES Bezier was an engineer with the Renault car company and set out in the early 1960's to develop a curve formulation which would lend itself to shape design. It is helpful to think of Bezier curves in terms of the centre of mass of a set of point masses.

3 For example, consider the four masses m 0, m 1, m 2, and m 3 located at points P 0, P 1, P 2, P 3. The centre of mass of these four point masses is given by the equation:

4 Next, imagine that instead of being fixed, constant values, each mass varies as a function of some parameter t. In specific: let m 0 = (1 -t) 3, m1 = 3t(1 - t) 2, m 2 = 3t 2 (1 - t) and m 3 = t 3. The values of these masses as a function of t is shown in this graph: Cubic Bezier blending functions

5 For each value of t, the masses assume different weights and their centre of mass changes continuously. In fact, as t varies between 0 and 1, a curve is swept out by the centre of masses. This curve is a cubic Bezier curve { cubic because the mass equations are cubic polynomials in t. Cubic Bezier blending functions

6 This curve is a cubic Bezier curve { cubic because the mass equations are cubic polynomials in t. Cubic Bezier curve

7 for any value of t, m 0 + m 1 + m 2 + m 3 = 1, we can simply write the equation of this Bezier curve as P = m 0 P 0 + m 1 P 1 + m 2 P 2 + m 3 P 3. Recall : m 0 = (1 -t) 3, m1 = 3t(1 - t) 2, m 2 = 3t 2 (1 - t) and m 3 = t 3. Note that when t = 0, m 0 = 1 and m 1 = m 2 = m 3 = 0. This forces the curve to pass through P 0. when t = 1, m 3 = 1 and m 0 = m 1 = m 2 = 0, thus the curve also passes through point P 3. Furthermore, the curve is tangent to P 0 – P 1 and P 3 - P 2. These properties make Bezier curves an intuitively meaningful means for describing free-form shapes.

8 Here are some other examples of cubic Bezier curves which illustrate these properties. These variable masses m i are normally called blending functions and their locations P i are known as control points or Bezier points. If we draw straight lines between adjacent control points, as in a dot to dot puzzle, the resulting figure is known as a control polygon. The blending functions, in the case of Bezier curves, are known as Bernstein polynomials. Examples of cubic Bezier curves

9 Bezier curves of various degree A degree n Bezier curve has n + 1 control points whose blending functions are denoted B i n (t), where

10 is called a binomial coefficient, sometimes spoken “n - choose – I”, and is equal to = In the previous example: n = 3 and m 0 = B 3 0 = (1 - t) 3, m 1 = B 3 1 = 3t(1 - t) 2, m 2 = B 3 2 = 3t 2 (1 - t) and m 3 = B 3 3 = t 3. B n i (t) is also referred to as the ith Bernstein polynomial of degree n. The equation of a Bezier curve is thus:

11 A common use for Bezier curves is in font dentition. All PostScript font outlines are defined using cubic and linear Bezier curves. The outline a letter “g” created using Bezier curves.


Download ppt "AN INTRODUCTION BEZIER CURVES. AN INTRODUCTION BEZIER CURVES Bezier was an engineer with the Renault car company and set out in the early 1960's to develop."

Similar presentations


Ads by Google