0% found this document useful (0 votes)
54 views19 pages

CG Unit II

Sppu 2nd year Computer Engineering Computer graphics 2nd unit notes
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
54 views19 pages

CG Unit II

Sppu 2nd year Computer Engineering Computer graphics 2nd unit notes
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 19
Unit ME chapter 3°- Pol gun!-and Clipping Myst fp Ka tmese Chapter we shidy differed type 4 Bshygen hein Yeprentabion aud BWing alo for trem ~ A polylive is a Chain of Commected line segmots, "MAS spcdlied by Bing The verces Cooder) fo fyf - = and Soom sth e, R> ee Ne oo al fa a Termind pads m, Poly gen - The Fret Vertex (6 called tne inital one stavbiey poi ana lash Vertex os Ged Awa or erwinel pant — When Starks pak and decid park of ony polyline TS Same © WORE polydiee is closed Athen (4 Ts adled poly gen , Ty way be Veprercrbed a2 9 number of line sejmat Commecked end bend ty form 4 Closed figure ~The Ure Segrrants tolich form tue boundary o f poly gen tpare Called Pstygen drawing Riwilive appe re exch, 1 ack, Tray appre graphics Aedce Suppers bin — Seme Com divedly Aras te Pela shape , On Atty device feel H ¢ © hye | » polyyes ave saved aris D Verpezoid primibivc Syprrach | — J, TA sucky Aewce supperds THis approach Barmed Bem reo 36a = Arphic a cenveest Every polyar fs \eroke ny “ devace ; bape totds Vinge Ok BO ST ie prenentes at a Ren TD) Ne ed pack appre nda': »d Mosh «fF ae graplics device de mob pyovide ony cupped + Wi such cress Ro\ygas are Yepreseated sins) Vines and pas _ ~-& polygn is wreproeske eS oy & Udk And it To Skered vn Atsplay KE = Tee opcode fer nero Command sdf Speciyy hee & Wrpezots ener a re Segmank iv An e \yaen, Ch,¢) Coy Crs) Cy Cy Cassy An inside fut = me Omce te pelygen Ys Can draw he pelygen oedtine « H Te show Me ply 285 solid obyeck We lave b seh THe baa pied om the boundary 4 if cedered [a tee dis play Ble | we Pix inside De pelygn ao vel \evennodd watyed™ en a: WEES hen (5 Anat wheather tue park is lyside ox outside te pelyse- = Oe steph Mowed sf deoy quis te censhuck x Ve Segre bdveen be pauk Ie quella amd A pack kenoun b be whid. Ae pelygen Ben RX odd odd Eve T Nes Coun} how many intersechens dra line Segre nk Git Te polysen bound 5 I Lew N 7) IE ECE drive “are an odd number 6 Waker sections 4 ren re aa qwohean is \wside obwrstie 4 f SS obide Taig waded fs Called ta even edd mebed >f Acker paygen Wide pots. 72) Windi umber neko dtm ~ Consider © piece of clarle bedween peiuk of querbimn (A) and a peink om polygen Bound ary « ~ Freak drat ebulre i Wed bh prot of queshin Broly and Me obey end claskic Vs Sliding along Aw \poundary of Ma polygon + LH Tt bey made cue driih — Ran we hack hoo many Hmes fro ebesty m mg ~ — <1 Avni 4 : \ { Kven ax uomin =" i > Xv miny Krownax | emin A paub ab postion Cte yo) ts winders iy mepped inky Posies Cry,dv) in Ma associetd viewperl ¥ Werk thin Frans froma nat - Me femsfrrmabin of olejeck dere phi from neve Co-crdinaley Yo device Co-crdinales fs catled werksbhe. shone on - Wicapath ol teitiches [Meemgliee Dos accomp\rslsd & de he A Window atta in nemelised Space anda viespert area In Ma co-crdinak ¢ 4 be displey dertce . 7” wb werles bling ree peen Wwe Can Parbin » vido ae Afferent parb nermbiied Space Cm be displayed on differed ontpub denices i Lined be eTe workshhien fansfrmelin usec peli ¢ ae t Pecfrmrning Filesiey slee \D Te objed tegemer with ith winder is fawldu UNBI Pe lover left corner of hw woinden fs ab he Orgin - » Objeck amd winds are scaled until bre inden ne be dimewions of he Weeopert %) Rans\atie e VMewgevt be “its Correct posike on Tre Scveww . — The precedure eet Tdedkk fo ea pork ons 6 pidwre, Atak oc eel eltuer juside oy outside 4 6 speaied Vege of Space vs vebferred te a Ai ping, — Too Aon aaainsh wld an objedk is b be dipped \s caved a dip wiades or Chipping winder | — Tes Appi al ddermines Dc pause , mou poker 4 Vikas he Oe he Aigriny Windeo - Line clippicg!- f; fe ° a Clipping window - ' fy &G 4 Be fore pring 6) Ae dipyisy. én . nee ee A Inhesicr bh he clipping Madan a uc is . S I . fh te hades ay Fone Pg ATP Me Nite cr th beh oe pt PE Uay Vive rect ere eases th fie a eal sn Ve is. net necessa G leteh, exh WM winder ey. Te Oe fe oT ep ierety ~ Fh beth end phy Vine ane Lukes i De watt °F, Completely b tre it hy Goopluhely cleere ie Coomapltdy belro tre winds » then te The is Compl, = xbew er AN te winder Aad lbence weille, oP Tus ve wren \ tug Spring lye # Cohen ~ Sedherland Gua Clipping Ageritnm!- — Ws is ta one oldest and most popular Vivs chi pins alge develope s by Derm Glau andtvan sadterland. - To speed Dre preceasing this ots nth Per fore WGWAl teoks that reduce te mumble ~ f Ctersectie, trad Mok be catculated, ~ TAs adyerttim wes a fur digit Chit) tobe Ph indiod whack 4 pas regions Cowdains Hun ead potot { lee (7 TH fouy Lib codes ave catted region Coder crm oubeods = Tois Code ide 7 mea locaton OF we peut vebeKue te Aue boundin of he Mppirg - 1 lool: yooe | \olo | ) ool | olen ) ) nach bik pestis iu Me veg tom code Fs eed {wlfteake one cI tw pu- vel-Kee ce-ordinak posiin of he pho were bo De clipping windeo ne eH, Wiyhk beg Lotter . ‘ — Ne bib are sek tL bared tre fellersitg Slew Sek Bibi TF Me end ph As Yo! fae de fh vendor * Ch Bt Dl TF cud pk ts Me ~~ Ly foe) we sd BS TF MO ead ph is belas Pua wides x sek Bib @ I= Th We cad pris above he Giudes | oherwise Pe biy > Sek FTO, once we Wave cslbblslud resin codes fre vty Me Vine tudpie, We Cay deborminn wldch Nees are Conmperdy inside Mma Uippingy Wider and Wher se Clearly outside . Bh waled wed b tot lian fe tht dipping G equivalent bee lexi AND Operator . =H tae cesuth E Pae lssicd AND *pemtin vit ho end pact code Ts nek C000) te Vive is Comp etel oubide Me opto cli pping Fegien . Fons | - A | ua | allo a\e\ loo } We Tad predes — syicd Aifhug — Rant e Pee ©6500 o00e 8000 Complbely si Ole ht 6001 sot) ool Complete invisible Ps PL aoc} 9600 0000 Par tty waibl P72 8150 rele 000 Paltz visite Pie loro cole do00 Pobaly Wsible Rute ti erie a cf] et _] we] it_] a Sidrerlind cohen cubdiszin line cli pping : Bell Re Testes ie Fol wo ttle Bae ae ee SH . BE ere — wironts eubile Fal gids bemmdee a and Pre second verck Ts inside he winders “ . Keen jnterseclinn is edge 4 boundary Winder avd Heo verkx Which 1 inside The window TF Shreg ia a udput — Vergle: List r oe | = yal ty a sm ie os eps. ex winder rs, ealy go> oh | Cove 2b! bs — > a _ Nas on m de Bromivevke 16 mda te weda- ~ Send uerky ph Te eubrde Te winds | 0 ppesl o~ | NG Ata we Hae fh She only ind = — ae gem Wi, Windnw tn TE _ — ——2sbpal NE ‘I { & oRre Pe only in Bi pepe List ; —_} __ es Se wihen Coe te l= bein Fret awd Seed verkx a ee - i 4 ae se sherthie ek = —oubpte vere tok ™% Teed ig pins — ter dipping — maces Bilor Ne 4 sighe SFA take! {Pee} ca i wo Hingis, NM Byron Shing Teen Poi gms ye Sa peste pefee chops Wee cheers a waa Ape Ore gael Oath Ns\- cocnypherely, taste cone ay

You might also like