0% found this document useful (0 votes)
31 views8 pages

CG Unit 2

Uploaded by

RESHMA FEGADE
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)
31 views8 pages

CG Unit 2

Uploaded by

RESHMA FEGADE
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/ 8
gy (MIT) FacultyName Prob. Vikas WV. Ohavary, Subject Name= CG Reference for Topies- Name of the ‘Author Name Page No/Link Book/paper/Website/Other_ Computes Graphics Second Edi ter, Zp Using: Open GL fs. WL Te Unit Name Namber:- UAL IT: Pdlygon LZ ‘ond Oni Topic Name Polygon ot + to, wopresent rresd woad “cornglen okjeet ‘polat, Polyaot) - Polygon - Tha nae Bride up a@nneoted lined - Ceole & nota Polygor Coz ‘ur dont hve. “este 27, AQmaY¢ @e) G) g teiangs ase mot sufident Hence “he bat west, ~ Polycpn has mas Sider & representtol by line Symon — line Segments ae lp oP Se Stan - Toarfe u wee whi mMinimun number ey etges Subject Teacher @ scanned with OKEN Scanner 4] ommessfalypery :- nny folygan Hse anyla Gel aux conscoutie edger is ahoaaye jowmetharynso® \, aie of oe ve seleat wardom too goinds ~ fos conver regeen i rect he UM all the Instle He polyaan ore if we fot ther Hhrmugh por on te (ne ape (cote bse ue polygon. STE) & ‘) omer Sea 4 concave. the Gefween af |ebet One pale qen Nseoulive yi a ab sili 3] (CBRAPIE><_efolyaainy ~ felggons which abe, «neither, eaonver? . enone Cencauer ots Called a cormplere . polygon; Compleye polygons at? sey - intersecting, ok oueslog ples, Save — poring, the Polygon feu feu ng 1 Orth those platele should be 4illed wile ate fosHe pale: - Detidlns. the Membership sh pieep veke | imp jo Petre ili, _ thera abe 2. meted to “4nd aut pled” d in/out 1) Eyen-cd method 2) Winding, ownbee method @ scanned with OKEN Scanner Japa tmathod consteucte q Bia From a given part to te Ensien point outelde ta polyga and cheslée the Yotessection go (iu with polyger boundoty— fy ee fi . 2 % (inne ce) Complee case) vistbalitg pont 22.) : = i Cue Aa then pointe _ Paoblern exish Oe line. : ic Migsiae tHe MYGOD crosses fe commen veahere = if Counk U ueny then aint Chote by toe adjuenk eyes js unser the polye?.- — Paty 2 Boge _ pp oa Se Cinteeseating, 2499) Pals 2 Hence Po U 5osde. ye 1B, 65 PoPy 7 Bur 445 outside the pelpyen — Noo PE fot Py “ Puls 2 Lv ecu . HT ee em Taleaaee We yon HONE Py outside cpporite. sie “4 rae - pty pel, D2 bu oukside phen count ag) 4 Snr m BC RCD Mle PaPy Hence Pay 7 2s even ~ outside . XY 2XZ ake on same Piro then commbis2 hence. PP, 2> 3 —otel - inside side. @ scanned with OKEN Scanner a winding Humber Rabe ~ Tho another tox -to define visibility, a pixel ~ Wke ever -edd test dram straight line 4pom examine to AY knewn en point = VicfE auteemast pound: +e Uodkwise. divectian and ~innoe boundamss (i emict) an a cokwWite ditectfon Eira — find +he Totetscotian party 4, due with poygan boundasies and Cheol, hoo dimer edger Cress ho bie wunile sprvesiing fm kbt Jo "s and efght to | ote evi if nk ip tole I 7 einta a thet {30 count iS the diftees 2 cero , the point u cutie the palygan otheewice he poiht Inside. the peygen. © Fee Pont Po Joled wih extetloret Px. — Fugen ae inteaceots Pea illle a from left-to Po js inkeetor paint =a Oya? UZ inteeseot- fine PeP7 pe Et ooh intersect line PcPy Fisomm I the oie op ntescetian count 4 22020 then Py doutelde pixe) for Py e 7 ip Ee Injesseok line, PyPe while, traversin: biped i ) ns 2x & nee jntessect line Refs whi tnwedlry left fo viglt diffceenee ue 2eeo , So fy U outchte polygeD , @ scanned with OKEN Scanner = pea Loh 1 LECTURE Department Name: Ape Faculty Nam Prey Vika V-Chovar Subject Name :- cay Reference for Topicr- Topic Name x | Pol; = Mest of He ge! genni. ‘packages prada there. abe 400 appboaches “fee area ) Deteeming 4a visiple 940 0 2» Arothet Shr ent Name of te Author Name Page No/biak Book/paper/Website/Other Gmpubee, Grraphie Second GATHOAY aA Using OPen HL Fs: AW Tr Unit Name & Numbers- - OW IT + pelygen yt medhsd i uted simple fee. A enh saedteogle s 2 Sak hh a, fee. ou w ' and Keep gules, Regione ate wdil i NK de Pramas qpht 2 in rebashe a 3° esa 4 eigen a we ee whtte Comper Subject Teacher @ scanned with OKEN Scanner F co eae Pinel connectt¥i = ee Pi wo w A- Connectedt pixel -connedteol Pine’. Boundaas4 elt Agotithe, |: : : ij | - node ree saad otter come Ynteeles pall of polygon A ceed pineal, and CoP ting peigtbor “pixels” in outward dieeetian unti| he bourdany Colet jp encounterest . | = Gourd | Boundarsy. Fill Ci iM(oler boundary (olor >) _ WU piloror - Color jo be pelleel Ip Polyg29 {1 pourdosy Grr = Ober boarded uureut <— get cobr (xt) | *F(cuneent 7 4itobr & wnrert 4 bourdagy(otn) then putpixel Cx, 4, putcelow) Boundary 4c C oH Sea pounds 4c (x-1 1 ¥ , ditleler, boundaty: Bourek Me Cote , jplkoler , boundary Gir) Doaniais 4 Ctugels floor > bounded, cer ) end. = “her ogo may nok weal. PMP Y somect finels alse gil +o avold 43 cet He Color 4 att intesioy te backgeorrny coley = i ecey te implement 3) Hoek Fooa ay tppe 4 feliger Disadvontfer - 1) Requiler extensive stacking dal te reaussion 2 Not wWeelle when Ln Multicolored 2) Heeel to specify seed poit within the pryger 4) polygon chowld fe ged with tu bactgtoun Glow - 8) bequive rrpve rem . 2) Net sullaite fag lage Polyaon . “ i ails cog connectivity — ? Fig geo ao ae &- connected ee _ ae vee. 4- connecter , ( Diagonal Hing) @ scanned with OKEN Scanner pA $i] Be ia eeatistic objesti hwe q difterct @lored beandatie, - fil algaritien cannot giv the polygon with mmulllestBteq porunde = Pood gilt algo. can teuclle fi isewet O62 Hood -pill (1 4 , illotsr oid cstoe ) cure <+ get comrl xp) YL Ccusrene 4 etd (star > then putpixel Cary fuels) ffoscl AH CEH, ye Hl OR ,oidcotar ) geod 4M Coty + giecoler old (oles ) qe gt Cees puller olledor ) ! a ELMO , CAIDA) gloot-get (ido 1 FUCA ¢ end. Advantagd = - — i) Simple ? cosy to implemext a it algo cannot ranctla +t objeer 3) Bourdon nee boundary ushete flood gi can do : pid = 1) Require. Extensive stecting a) Sloe 8 gptole cmmem at Lfime, \p tense. duo te tpn TEHNVE ae Een i jeible S| each scan - sake computer the visible SP2D Ae Ee ; fede ui . it woek witth aa jfoncae , eH inteesccting and polygain usitr bole, a © a Ae goreeseceten pour sept fe ott - See app petal volo ay ee) she. polaqeo propetly. @ scanned with OKEN Scanner — Sean line polygar qputi agyeoaah wovlts ay folomt ‘ © dod fntessecei on 3 sean line with polygon edges ‘ * soe all jobetsetian’s On thei xwosdinite i oe o fil he span using @ pals of. casted Joteescction ports _ when sean Ine Toressecté the polygon boundates , pacty todd and when ib jnjessechs ga’ past. Bewmes even - PU tre SPA beteveen odd to 2uen patty Iaitialy, pasitg, woul be eben @ scanned with OKEN Scanner

You might also like