[SOLVED] Computer-Graphics Lab 11

30.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon LabAssignment11-flsilb.zip (92.4 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
Rate this product

 

1. Write down a Python program to visualize a Bezier curve.

A. B.

C. D.

E.

Start from uploaded LabAssignment11-1-code-skeleton.py, modify this program to draw a Bezier curve instead of a line

About LabAssignment11-1-code-skeleton.py:
i. It draws a line segment between two end points.

ii.

You can drag the end points.
Use de Casteljau’s Algorithm to compute Bezier curve.

In your modified program, control points p0, p1, p2, p3 should be draggable and rendered in green.

Draw the edges of the control polygon in green as well.

F.

G. H. I.

i.
Initial value of control points:

i.
Set the window title to your student ID and the window size to (480,480).

Expected result: Uploaded LabAssignment11-1.mp4

Files to submit: A Python source file (Name the file whatever you want (in English). Extension should be .py)

p0 = np.array([100.,200.])

p1 = np.array([200.,300.]) p2 = np.array([300.,300.]) p3 = np.array([400.,200.])

  • LabAssignment11-flsilb.zip