Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
31 views
8 pages
CG Unit 2
Uploaded by
RESHMA FEGADE
AI-enhanced title
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
Download
Save
Save CG Unit 2 (1) For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
0 ratings
0% found this document useful (0 votes)
31 views
8 pages
CG Unit 2
Uploaded by
RESHMA FEGADE
AI-enhanced title
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
Carousel Previous
Carousel Next
Download
Save
Save CG Unit 2 (1) For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
Download
Save CG Unit 2 (1) For Later
You are on page 1
/ 8
Search
Fullscreen
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 Scanner4] 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 ScannerJapa 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 Scannera 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 ScannerF 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 ScannerpA $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
Principles: Life and Work
From Everand
Principles: Life and Work
Ray Dalio
4/5 (648)
The Emperor of All Maladies: A Biography of Cancer
From Everand
The Emperor of All Maladies: A Biography of Cancer
Siddhartha Mukherjee
4.5/5 (298)
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
From Everand
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
Brené Brown
4/5 (1175)
The Glass Castle: A Memoir
From Everand
The Glass Castle: A Memoir
Jeannette Walls
4.5/5 (1856)
The Yellow House: A Memoir (2019 National Book Award Winner)
From Everand
The Yellow House: A Memoir (2019 National Book Award Winner)
Sarah M. Broom
4/5 (100)
The Unwinding: An Inner History of the New America
From Everand
The Unwinding: An Inner History of the New America
George Packer
4/5 (45)
Team of Rivals: The Political Genius of Abraham Lincoln
From Everand
Team of Rivals: The Political Genius of Abraham Lincoln
Doris Kearns Goodwin
4.5/5 (244)
Shoe Dog: A Memoir by the Creator of Nike
From Everand
Shoe Dog: A Memoir by the Creator of Nike
Phil Knight
4.5/5 (629)
The World Is Flat 3.0: A Brief History of the Twenty-first Century
From Everand
The World Is Flat 3.0: A Brief History of the Twenty-first Century
Thomas L. Friedman
3.5/5 (2289)
Angela's Ashes: A Memoir
From Everand
Angela's Ashes: A Memoir
Frank McCourt
4.5/5 (943)
Rise of ISIS: A Threat We Can't Ignore
From Everand
Rise of ISIS: A Threat We Can't Ignore
Jay Sekulow
3.5/5 (144)
Sing, Unburied, Sing: A Novel
From Everand
Sing, Unburied, Sing: A Novel
Jesmyn Ward
4/5 (1267)
Steve Jobs
From Everand
Steve Jobs
Walter Isaacson
4.5/5 (1139)
Fear: Trump in the White House
From Everand
Fear: Trump in the White House
Bob Woodward
3.5/5 (836)
The Light Between Oceans: A Novel
From Everand
The Light Between Oceans: A Novel
M.L. Stedman
4.5/5 (815)
Her Body and Other Parties: Stories
From Everand
Her Body and Other Parties: Stories
Carmen Maria Machado
4/5 (903)
The Perks of Being a Wallflower
From Everand
The Perks of Being a Wallflower
Stephen Chbosky
4.5/5 (4103)
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
From Everand
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
Dave Eggers
3.5/5 (233)
Manhattan Beach: A Novel
From Everand
Manhattan Beach: A Novel
Jennifer Egan
3.5/5 (919)
John Adams
From Everand
John Adams
David McCullough
4.5/5 (2546)
The Outsider: A Novel
From Everand
The Outsider: A Novel
Stephen King
4/5 (2886)
Little Women
From Everand
Little Women
Louisa May Alcott
4.5/5 (2369)