We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More


Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

Discuss here about this assignment....

Assignment No. 02
SEMESTER Spring2013
CS602- Computer Graphics

 

Total Marks: 20

 

Due Date: 08/05/2013.

Instructions

11. 2D Transformations I

Please read the following instructions carefully before solving & submitting assignment:

It should be clear that your assignment will not get any credit (zero marks) if:

  • The assignment is submitted after due date.
  • The submitted assignment does not open or file corrupt.
  • The assignment is full or partially copied (from other student or ditto copy from handouts or internet).
  • Student ID is not mentioned in the assignment File or name of file is other than student ID.
  • The assignment is not submitted in .doc /.docx (MS Word) format.

 

Uploading instructions

Your Submission must include:

 

  1. MS Word file.

Objective

The objective of this assignment is

 

  • To make you understand the concept and application of Scan Line Algorithm for polygon filling.

 

Important Requirements and Instructions:

  1. You are not allowed to copy it from internet. In that case no marks shall be awarded.
  2. Same assignment of two or more students shall be considered cheating case and they will get straight zero marks.
  3. Assignment last date is 08/05/2013..Any lame excuses will not be accepted. 
  4. We will not accept assignment through email in any case. Be careful.

 

 

 

For any query about the assignment, contact at cs602@vu.edu.pk

GOOD LUCK

 

 

 

                                                                                                              

Answer the following question.

 

Question:

Following is the diagram of polygon. Use the Scan Line Algorithm for polygon filling and fill the respective tables for each iteration given below.

 

                                    (05, 15)          (10, 15)        (15, 14)      (20, 15)

 

 

 


                                                                                                           

              

 

 

                                    (05, 05)  (08, 05)                           (17, 05)             (25, 10)

 

All Edge Table:  //  2 marks                                   

 

INDEX

 

Y-MIN

Y-MAX

X-VAL

1/m

0

 

 

 

 

 

1

 

 

 

 

 

2

 

 

 

 

 

3

 

 

 

 

 

4

 

 

 

 

 

5

 

 

 

 

 

6

 

 

 

 

 

7

 

 

 

 

 

 

 

Global Edge Table: //  4 marks        

                          

 

INDEX

 

Y-MIN

Y-MAX

X-VAL

1/m

0

 

 

 

 

 

1

 

 

 

 

 

2

 

 

 

 

 

3

 

 

 

 

 

4

 

 

 

 

 

5

 

 

 

 

 

6

 

 

 

 

 

7

 

 

 

 

 

 

 

 

Active Edge Table initialization: // 4  marks                                   

 

                  Active Edge Table

                         Global Edge Table

INDEX

 

Y-MAX

X-VAL

1/m

INDEX

 

Y-MIN

Y-MAX

X-VAL

1/m

0

 

 

 

 

 

 

 

 

 

1

 

 

 

 

 

 

 

 

 

2

 

 

 

 

 

 

 

 

 

3

 

 

 

 

 

 

 

 

 

4

 

 

 

 

 

 

 

 

 

5

 

 

 

 

 

 

 

 

 

6

 

 

 

 

 

 

 

 

 

7

 

 

 

 

 

 

 

 

 

 

Scanline:5   //  2 marks                                   

 

                  Active Edge Table

                         Global Edge Table

INDEX

 

Y-MAX

X-VAL

1/m

INDEX

 

Y-MIN

Y-MAX

X-VAL

1/m

0

 

 

 

 

 

 

 

 

 

1

 

 

 

 

 

 

 

 

 

2

 

 

 

 

 

 

 

 

 

3

 

 

 

 

 

 

 

 

 

4

 

 

 

 

 

 

 

 

 

5

 

 

 

 

 

 

 

 

 

6

 

 

 

 

 

 

 

 

 

7

 

 

 

 

 

 

 

 

 

 

Scanline:9//  2 marks                                   

 

                  Active Edge Table

                         Global Edge Table

INDEX

 

Y-MAX

X-VAL

1/m

INDEX

 

Y-MIN

Y-MAX

X-VAL

1/m

0

 

 

 

 

 

 

 

 

 

1

 

 

 

 

 

 

 

 

 

2

 

 

 

 

 

 

 

 

 

3

 

 

 

 

 

 

 

 

 

4

 

 

 

 

 

 

 

 

 

5

 

 

 

 

 

 

 

 

 

6

 

 

 

 

 

 

 

 

 

7

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Scanline:10 //  2 marks                                   

 

                  Active Edge Table

                         Global Edge Table

INDEX

 

Y-MAX

X-VAL

1/m

INDEX

 

Y-MIN

Y-MAX

X-VAL

1/m

0

 

 

 

 

 

 

 

 

 

1

 

 

 

 

 

 

 

 

 

2

 

 

 

 

 

 

 

 

 

3

 

 

 

 

 

 

 

 

 

4

 

 

 

 

 

 

 

 

 

5

 

 

 

 

 

 

 

 

 

6

 

 

 

 

 

 

 

 

 

7

 

 

 

 

 

 

 

 

 

 

Scanline:13//  2 marks                                   

 

                  Active Edge Table

                         Global Edge Table

INDEX

 

Y-MAX

X-VAL

1/m

INDEX

 

Y-MIN

Y-MAX

X-VAL

1/m

0

 

 

 

 

 

 

 

 

 

1

 

 

 

 

 

 

 

 

 

2

 

 

 

 

 

 

 

 

 

3

 

 

 

 

 

 

 

 

 

4

 

 

 

 

 

 

 

 

 

5

 

 

 

 

 

 

 

 

 

6

 

 

 

 

 

 

 

 

 

7

 

 

 

 

 

 

 

 

 

 

Scanline:14 //  2 marks                                   

 

                  Active Edge Table

                         Global Edge Table

INDEX

 

Y-MAX

X-VAL

1/m

INDEX

 

Y-MIN

Y-MAX

X-VAL

1/m

0

 

 

 

 

 

 

 

 

 

1

 

 

 

 

 

 

 

 

 

2

 

 

 

 

 

 

 

 

 

3

 

 

 

 

 

 

 

 

 

4

 

 

 

 

 

 

 

 

 

5

 

 

 

 

 

 

 

 

 

6

 

 

 

 

 

 

 

 

 

7

 

 

 

 

 

 

 

 

 

 

Note:  

  1. 1.      No explanation is required only fill the given tables. In case the field is empty in table enter “Nil”.
  2. 2.      Only show the steps by filling the given tables in Assignment. No other tables for any other step are required.

Lectures Covered: This assignment covers Lecture # 07-11

Deadline

Your assignment must be uploaded/submitted at or before 08/05/2013.                         

 

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 3613

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Attachments:

Replies to This Discussion

This is my solution. Sorry, it is not complete.

Attachments:

ye solution theek hia koi discuss to karo

I think x values wrong hain HO ma by mistake high y value likha hai but calculation jo hai wo minimum y value se hui hai plz check in HO 

am i right or wrong

Ali bhai ap ne ye assignment kasy solve ki hai i meant kis method se solve ki hai ye bta dn baqi mein khud bana lun gi....

plz koi tu help kr dy assi mein

ali bhai plz ap snd krna comp solution jo apk lehaz sy hy

:)

please discuss solution. from which lesson this assignment is?

The assignment is from Lecture # 8. Please see the example 8.3. 

aray kise ko samaj ahie hai kay 1/M kasay liya gaya hai i dont understand it

king ap ko starting ki samaj aye hai?

RSS

© 2020   Created by +M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service

.