CS2405 Set2

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

ANNA UNIVERSITY, CHENNAI-600025.

B.E / B.Tech DEGREE EXAMINATION, Nov/Dec 2014.


Regulation-2008
BE - Computer Science and Engg / B.Tech Information Technology
Semester 7
CS2405 / Computer Graphics Lab
Time : 3 Hours

Max Marks : 100

1. a. Write program to draw line using Bresenhams Line drawing program.

( 50 )

b. Apply the above program to create Solid Line, Dotted Line, Center Line, Dashed
Line and Userbit Line using line attributes.
( 50 )

2. a. Write program to draw circle using Bresenhams circle drawing program using
x-coordinate of the centre point : 100, y-coordinate of the centre point : 100 and
radius : 50.
( 50 )
b. Write an program to create Empty Fill, Soild Fill,Line Fill, Wide dot Fill, Close dot
Fill and User Fill using circle attributes.
( 50 )

3. a. Write program to draw circle using Bresenhams ellipse drawing program using
x-coordinate of the centre point : 100,y-coordinate of the centre point : 200,
x-coordinate of the radius : 50 and the y-coordinate of the radius : 60.
( 50 )
b. Write program to create Empty Fill,Soild Fill,Line Fill,Wide dot Fill,close dot Fill
and User Fill using ellipse attributes.
( 50 )

4. a. Write program to perform translation of a triangle object as below.

b. Apply reflection of the above object with respect to x axis and y-axis.

( 50 )

5. a. Write program to perform translation of a triangle object as shown below.

( 50 )

b. Apply shearing

with respect to x-axis and y axis separately as shown below. ( 50 )

( 50 )

6. i. Write a program to create 3 D object as shown below.

ii.

Apply 3-D translation and rotation with respect to x axis.

7. i. Write a program to create 3 D object as shown below.

ii. Apply 3-D translation and scaling operation.

8.

( 50 )

( 50 )

( 50 )

Write a program to perform 2-D Composite transformation (translation followed by


rotation) of triangle.
( 100 )

( 50 )

9. i. Write a program for 2-D Reflection with respect to x axis.

ii. Write a program for 2-D shearing.

( 50 )

10. Write a program to perform cohen Sutherland line clipping program.

( 100 )

11. Write a program to perform Sutherland Hodgeman polygon clipping program.

( 100 )

12. Write a program to generate fractal image.

( 100 )

13. i. Write a program to apply scaling to 2-Dimensional shapes.

( 50 )

Ii. Write a program to apply rotation to 2-Dimensional shapes.


4

( 50 )

( 50 )

14. i. Write a program to apply scaling to 2-Dimensional shapes.


ii. Write a program to apply shearing to 2-Dimensional shapes.

( 50 )

15. Write a program to apply composite scaling and rotation to 2-D shapes.

( 100 )

16. Write a program to apply composite translation and rotation to 2-D shapes.

( 100 )

17. Write a program to apply composite translation and scaling to 2-D shapes.

( 100 )

18. Write a program to apply scaling and rotation to 3-Dimensional shapes.

( 100 )

( 50 )

19. Write a program to apply scaling and translation to 3-Dimensional shapes.

( 100 )

20. Write a program to apply translation and rotation to 3-Dimensional shapes.

( 100 )

You might also like