Batch 2 computer graphics (7-29) (1)

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

Kluvan Arora Page No.

2(5 10007
o putrrpmes Date

Brerenham'e algo nle


conveg a eme fromCDto (3,)1

(r).
aluel-e ¿ontana
20y-24n

braun stastug walue fo


dOeCLÚnpasemete
Po 2

-20r

Ae (2-X1)

2 Dy 20x
2(4)-2(1)

Jncrement stautng
(212)
Date

K Pe
(212)
(3/2)

-2A
Pet20y.

( k+t L8 )
Name handam Yaclw
Coese - Bac (Hhons) cS

Qes) Imecat te mt naoteu foolion wih wt

C,) to (3,1)

y alb om hons ,) to (3,U


two enti ,ts alofpt m

where

ha

Por

dy 2 (2) (3 -)- J
went huine he
d,>0
and slighly abev
bt

th
hoation.
hoeten wile be l2,2 ),
ment naatu
insert
PrtBc

t i t ectant cieu cntud (o,o) wnd


q4 Acon corwut th
unitu ?
having hadius o 5 Ll do 4 a -
teut ieles
Aws:
dws meat myetant
ü) Bcham's uele ayotlm
Tn
hy hathh t u n i t initial cotaut
paint ile calgouthm
nd cevwcted.
aing id- bt scornnd

fuih on (o,o) and


Initialiing tautingntud radius u 5, do
u at
Ane A
(o,s) u th atarting peihon.
daien paLamtu:
(2)
Caleuating
d= |-S
d=-4
Thit hens a t u wng
(3) btenining nut pixd : (ineent xby 3)
Move ight by d pixel d moe aown by t pixel
" Mew 4 pixel ight hy nmnted )
(both X and y AL

ineumt' ery x.
pixed ond cewn by 1 , d0 we
d>cO, mowng hight bay s
3
ineunut both X an d
etant
to scan tu t t ntil x bcome
NL ony ed doep itusatu
egal to y do, th
ws than o
guatu thun y.
ttu teut tortaut o ciael
pixel endinat tor
(2, 4) , (3,4) (4, 3), (K,o)
(O,5), 0, 4),
0010 l6 S
2
4
4 0100 12
Outoode (Bniy) Citoed
Point
(2KXmn) 9Bi4t
%ma) Bit32Rigbt
(y<gmia) 6ottbai 9:Bit
cedu Region
1oD(20,
) cC0,
1o) 20) 8(30, 20l, Atto,
o) sdlnal Co- (haung ABCD ctaaga
AS Reell
no
ame-kankha
Pal Q012
’Chcek tetul Rejectioss Calert
Betcode

deeolead.

tuatie
ntil n

lalulat ttiintossctiou
wtnalos boLndaly Bassd en tto hon- qlo
oLttode bitiU

for bdtea hit):y= ymia

tnclfoi.te
alcecles
eide Samt

P'sateele (4) nclicetetls etadle t

Calolate titreeten
[ n i y = lo);

2) ((10-)o-S)+ 1

Calculat teLntusetisa ntt te te

x'= (20-5)(20-l2)/ (9a-12) +


3.33
Luhdotid eeiss 32,20)
!PCro,/) to q'(a33,20)
Bclnputo Soep
Vn sem Date
Page No.
brocohi ageesal
Q1500LS

what the tondhion fx

omin =O, jmin20,

BH2 2
bi13 snCmar)=Ssin Co-1) xn[-1) 2D
Date
Page No.

Br
Sign (I-1)

)o11ooeo
PAND -JDol AND ol] = lool
o00o

CindiHon 000o
Assgment

A CO)0

fe po Ploj2)
s(2-4) 0
-y= 5C0-2)0

Rt 3

Cuj2
CO2)-o
FSugonC19)
Bit
coole
Pago

AN D

mst calCulote cteecle foints


22

lyuteseclion

rteelon
Page :
Date :

tecclugn

Ltm vtcis clion


P'age Na. Date / 0

LNameJaMahi Yadav
Rol No- QlS00R3.
Aubject-lomnputer grapuin
Pemater-6th femerter.

14 Rasterlze, the Cne wing DDA done drawine


atd is,S, 20), G

. caloulate the iemoyi

g2 e-4220-(0z10,

2.Caloulate the mo steps


9n DDA, we ypiea ly itrate over the x
he mumber al tpc usll be Jame for botn

3" calolote the inoemet


Xincz b lo2/ Ctis ileaololeo to
6.
B"Repeati
(S,t0)
18)(3,
ThËs XZ yz Cal Plot terate Coopi
stort
the Cayy et
Snitiallze
poirt Varableso
XtXine opeo Updote
Culate
mioeheloop
Co, wil yt th
Yne tne
14,19) t) CUiret 8teps
tterate (, ho the
meuw curennt
c0ordnaty?
12) back(update(imae toop
l s, Y-
8, coordimaty
(0 to CooydUnate foyor
13) the plo
timnes,
20).9,14) A-coTdrates,
tp6 el JHps
pope by)
(io, conqtnue
plottng baed X,
s om me, y) PageNo,
IS
fve, sf to
the WianeRed
epoint C, /2bate
yine n timi. the
l6) ityaing tne ratta,
(12B Mart
a
DATE
j PAGE

Awweu-5

Ax = X,-X, = 8-1)=T
Ayy-y= l5-) =4
& 2Ay-Az= 8-t=1
RAy
Zby -2 A = &- 14
Plat
9 -5
3 3
4 3 -3
(s2) 3
C4 3)
-1
(S, 3)
4
(A,4)

-6

3 4 5 7
Q:Hhat ü the condiHor 4or tiial ujocfioru s a ine segmant
16LM i th L(a5) and M(,5) in Cohen Suthenland Line ipping
alhoithm uaing echangulas uuindaD dalinad by onttes
A(0,o) >8(1, o) c(t,1) end D(o, 1)
Ans) Tn the cohun- Suthen land tin Clipping algoithn a
tine segmtnt ia tiuially jected y both endpoints lie
ently en an1 stdu o the clipping uLn dow. M(1,5)
fos segmarnt LM uuth endpoints L(o. s) and
8(,0), C1,)
and the uindow doinad by veticss A(o,0)
and Dto, 1): |001

O001 O000

,5)
L(o,5) o101 o1 00

D6,) c(1,1) 0000


i AND =
A(0,o) thun Trinal ejeched
8(1,0)
hawe fh same y-tcoxdi na te and
Since both endpoin: sag marnt LM is tivially
lie abore the nindoy >1) the
oujced.

Roll no.: 21570025


Name: Mal Ka Tahan
Nmv- Iuht a bupka Kol no 21S0026
To apn the tohun- uthetland

utindow (ACO) We n
Lodes to Lach pouit bad on
hei ulcie pouloha to the ttido undau

0 001

P:0000
9000o

R' )000
DOMSPap Nio.
Date

Both cndpouil ce pceially buct


twe neodo clijo the
tganit he

10
.S!o(0
P: DO00
Laçnd o

You might also like