Question: WHAT NEEDS TO BE DONE IS: 1. You must construct a program that allows the user, by clicking with the mouse on the screen, to

A Bzier curve can be described using a mathematical formula. Given the coordinates of the control points Pi:

For example, the 3-point curve is formed by points ( (x, y) ) calculated as: - ( x=(1-t)^{2} x_{1}+2left(1-underline{un

[ left{begin{array}{l} x=110 cdot(1-t)^{3}+25 cdot 3 cdot(1-t)^{2} cdot t+210 cdot 3 cdot(1-t) cdot t^{2}+210 cdo

1. Draw control points. In the previous demonstration are labeled: yellow, blue, red and green. 2. Construct segments between

WHAT NEEDS TO BE DONE IS:

1. You must construct a program that allows the user, by clicking with the mouse on the screen, to create control points, once the points are entered, the Bézier curve determined by the points must be created.

2. The user may determine arbitrary shapes with the mouse in such a way that figures such as those shown in the document can be created (trolley, letter, vessel, etc.)

3. The arbitrary drawing may be made with Bézier curves of degrees 2, 3, and 4. In such a way that each (2, 3, and 4) point is created a Bézier curve.

4. Once the shape has been created, the user can drag with the mouse any of the control points and the program must allow the curve to follow the chosen control point.

5. Once the figure has been formed with the Bezier curves, this figure may be completed

PD: IN ANY programming language.

A Bzier curve can be described using a mathematical formula. Given the coordinates of the control points Pi: the first control point has the coordinates P1 = (x1, y1), the second: P2 = (x2, y2), and so on, the coordinates of the curve are described by the equation that depends on the parameter t of the segment [0,1]. The formula for a 2-point curve: P = (1-t) P+ tP2 For 3 control points: P =(1-t) P + 2(1-t) tP + tP3 For 4 control points: P = (1-t) P + 3(1-t)tP +3 (1-t)tP3 + tP4 These are the vector equations. In other words, we can put x and y instead of P to get the corresponding coordinates.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Yes you are correct Bzier curves can be described using mathematical formulas that depend on the coo... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!