Logo Studenta

Project of Bezier Curves Laboratory. Bezier curves are used in computer-aided design and are named after the French mathematician Pierre Bezier (...

Project of Bezier Curves Laboratory.

Bezier curves are used in computer-aided design and are named after the French mathematician Pierre Bezier (1910-1999), who worked in the automotive industry. A Bezier curve is determined by four control points, P0(x0, y0), P1(x1, y1), P2(x2, y2), and P3(x3, y3), and is defined by the parametric equations x=x0(1-t)^3+3x1t(1-t)^2+3x2t^2(1-t)+x3t^3 and y=y0(1-t)^3+3y1t(1-t)^2+3y2t^2(1-t)+y3t^3, where 0<=t<=1. Note that when t=0, we have (x,y)=(x0,y0), and when t=1, we have (x,y)=(x3,y3), so the curve starts at P0 and ends at P3.

1. Plot the Bezier curve with control points P0(4,1), P1(28,48), P2(50,42), and P3(40,5). Then, on the same screen, plot line segments P0P1, P1P2, and P2P3. (Exercise 31 in Section 10.1 shows how to do this.) Note that the mid-control points P1 and P2 are not on the curve; the curve starts at P0, heads toward P1 and P2 without reaching them, and ends at P3.

2. In the graph of problem 1, it appears that the tangent line at P0 passes through P1 and the tangent line at P3 passes through P2. Prove this.

3. Try to produce a Bezier curve with a loop by changing the second control point in problem 1.

4. Some laser printers use Bezier curves to represent letters and other symbols. Experiment with control points until you find a Bezier curve that gives a reasonable representation of the letter C.

5. More complicated shapes can be represented by joining two or more Bezier curves. Suppose the first Bezier curve has control points P0, P1, P2, P3, and the second has control points P3, P4, P5, P6. If we want to join these two pieces smoothly, then the tangent lines at P3 must match, and so the points P2, P3, and P4 must lie on this common tangent line. Using this principle, determine the control points for a pair of Bezier curves that represent the letter S.


Todavía no tenemos respuestas

¿Sabes cómo responder a esa pregunta?

¡Crea una cuenta y ayuda a otros compartiendo tus conocimientos!


✏️ Responder

FlechasNegritoItálicoSubrayadaTachadoCitaCódigoLista numeradaLista con viñetasSuscritoSobreDisminuir la sangríaAumentar la sangríaColor de fuenteColor de fondoAlineaciónLimpiarInsertar el linkImagenFórmula

Para escribir su respuesta aquí, Ingresar o Crear una cuenta

User badge image

Otros materiales