Você está na página 1de 4

Home Work 3

CSE-455
DOA: DOS:
PART-A
Q1.Aplly text clipping with all methods for the following diagram.

INDIA IS MY COUNTRYINDIA IS MY
COUNTRY
INDIA IS MY
COUNTRY

Ans:Text clipping are done in 3 ways which are as follows:

1)string based clipping: the whole string is cut out or clipped off from the screen .

2) character based clipping: an alphabet or a character is clipped off from the


clipping window.

3) component based clipping: an alphabet , a letter is considered as component and


which ever portion is required is clipped off from the window.

COUNTR Y INDIA
IS M

INDIA IS MY
COUNTRY

Character based clipping

INDIA IS MY
COUNTRY

String based clipping


COUNTR Y INDIA
IS M

INDIA IS MY

Component based clipping

Q2.For the following diagram which clipping method do we use, and apply the
clipping for the following polygon.

Q3.By using cohen Sutherland algorithm apply line clipping for the following lines.

L1

L4

L2 L3

L1=>(x1,y1)=(1,8) (x2,y2)=(7,8), L2=>(x1,y1)=(3,6) (x2,y2)=(6,2),


L3=>(x1,y1)=(7,5) (x2,y2)=(10,5), L4=>(x1,y1)=(11,2) (x2,y2)=(11,11),
Xmin=4 ,Xmax=12,Ymin=4,Ymax=9

PART-B

Q4. Write a program for shear an object with respect to any of three coordinate
axes,
using input values for shearing perameters.
Q5. Apply 3d clipping for the following object. Object

Clipping
window

Window size is (Xmin,Ymin,Zmin)=(3,1,2) (Xmax,Ymax,Zmax)=(12,6,6) object size


is (Xmin,Ymin,Zmin)=(9,2,3),(Xmax,Ymax,Zmax)=(15,5,5).

Q6.Differentiate between interior clipping and exterior clipping with example.

Você também pode gostar