![大三05計(jì)算機(jī)圖形學(xué)curves and surfaces_第1頁(yè)](http://file4.renrendoc.com/view/5c63bbe99d1c7324a2e43f269da58273/5c63bbe99d1c7324a2e43f269da582731.gif)
![大三05計(jì)算機(jī)圖形學(xué)curves and surfaces_第2頁(yè)](http://file4.renrendoc.com/view/5c63bbe99d1c7324a2e43f269da58273/5c63bbe99d1c7324a2e43f269da582732.gif)
![大三05計(jì)算機(jī)圖形學(xué)curves and surfaces_第3頁(yè)](http://file4.renrendoc.com/view/5c63bbe99d1c7324a2e43f269da58273/5c63bbe99d1c7324a2e43f269da582733.gif)
![大三05計(jì)算機(jī)圖形學(xué)curves and surfaces_第4頁(yè)](http://file4.renrendoc.com/view/5c63bbe99d1c7324a2e43f269da58273/5c63bbe99d1c7324a2e43f269da582734.gif)
![大三05計(jì)算機(jī)圖形學(xué)curves and surfaces_第5頁(yè)](http://file4.renrendoc.com/view/5c63bbe99d1c7324a2e43f269da58273/5c63bbe99d1c7324a2e43f269da582735.gif)
版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、Rendering Curves and Surfaces1Angel: Interactive Computer Graphics 5E Addison-Wesley 2009原著Ed AngelProfessor of Computer Science, Electrical and Computer Engineering, and Media ArtsUniversity of New Mexico編輯 武漢大學(xué)計(jì)算機(jī)學(xué)院圖形學(xué)課程組2Angel: Interactive Computer Graphics 5E Addison-Wesley 2009ObjectivesIntrodu
2、ce methods to draw curvesApproximate with linesFinite DifferencesDerive the recursive method for evaluation of Bezier curves and surfacesLearn how to convert all polynomial data to data for Bezier polynomials3Angel: Interactive Computer Graphics 5E Addison-Wesley 2009Evaluating PolynomialsSimplest m
3、ethod to render a polynomial curve is to evaluate the polynomial at many points and form an approximating polylineFor surfaces we can form an approximating mesh of triangles or quadrilateralsUse Horners method to evaluate polynomials p(u)=c0+u(c1+u(c2+uc3)3 multiplications/evaluation for cubic4Angel
4、: Interactive Computer Graphics 5E Addison-Wesley 2009Finite DifferencesFor equally spaced uk we define finite differencesFor a polynomial of degree n, the nth finite difference is constant5Angel: Interactive Computer Graphics 5E Addison-Wesley 2009Building a Finite Difference Tablep(u)=1+3u+2u2+u36
5、Angel: Interactive Computer Graphics 5E Addison-Wesley 2009Finding the Next ValuesStarting at the bottom, we can work up generating new values for the polynomial7Angel: Interactive Computer Graphics 5E Addison-Wesley 2009deCasteljau RecursionWe can use the convex hull property of Bezier curves to ob
6、tain an efficient recursive method that does not require any function evaluationsUses only the values at the control pointsBased on the idea that “any polynomial and any part of a polynomial is a Bezier polynomial for properly chosen control data”8Angel: Interactive Computer Graphics 5E Addison-Wesl
7、ey 2009Splitting a Cubic Bezierp0, p1 , p2 , p3 determine a cubic Bezier polynomialand its convex hullConsider left half l(u) and right half r(u)9Angel: Interactive Computer Graphics 5E Addison-Wesley 2009l(u) and r(u)Since l(u) and r(u) are Bezier curves, we should be able tofind two sets of contro
8、l points l0, l1, l2, l3 and r0, r1, r2, r3that determine them10Angel: Interactive Computer Graphics 5E Addison-Wesley 2009Convex Hullsl0, l1, l2, l3 and r0, r1, r2, r3each have a convex hull thatthat is closer to p(u) than the convex hull of p0, p1, p2, p3This is known as the variation diminishing p
9、roperty.The polyline from l0 to l3 (= r0) to r3 is an approximation to p(u). Repeating recursively we get better approximations.11Angel: Interactive Computer Graphics 5E Addison-Wesley 2009EquationsStart with Bezier equations p(u)=uTMBpl(u) must interpolate p(0) and p(1/2)l(0) = l0 = p0l(1) = l3 = p
10、(1/2) = 1/8( p0 +3 p1 +3 p2 + p3 )Matching slopes, taking into account that l(u) and r(u)only go over half the distance as p(u)l(0) = 3(l1 - l0) = p(0) = 3/2(p1 - p0 )l(1) = 3(l3 l2) = p(1/2) = 3/8(- p0 - p1+ p2 + p3)Symmetric equations hold for r(u)12Angel: Interactive Computer Graphics 5E Addison-
11、Wesley 2009Efficient Forml0 = p0r3 = p3l1 = (p0 + p1)r1 = (p2 + p3)l2 = (l1 + ( p1 + p2)r1 = (r2 + ( p1 + p2)l3 = r0 = (l2 + r1)Requires only shifts and adds!13Angel: Interactive Computer Graphics 5E Addison-Wesley 2009Every Curve is a Bezier CurveWe can render a given polynomial using the recursive
12、 method if we find control points for its representation as a Bezier curve Suppose that p(u) is given as an interpolating curve with control points qThere exist Bezier control points p such thatEquating and solving, we find p=MB-1MIp(u)=uTMIqp(u)=uTMBp14Angel: Interactive Computer Graphics 5E Addiso
13、n-Wesley 2009MatricesInterpolating to BezierB-Spline to Bezier15Angel: Interactive Computer Graphics 5E Addison-Wesley 2009ExampleThese three curves were all generated from the sameoriginal data using Bezier recursion by converting allcontrol point data to Bezier control pointsBezierInterpolatingB S
14、pline16Angel: Interactive Computer Graphics 5E Addison-Wesley 2009SurfacesCan apply the recursive method to surfaces if we recall that for a Bezier patch curves of constant u (or v) are Bezier curves in u (or v)First subdivide in u Process creates new points Some of the original points are discarded
15、original and keptneworiginal and discarded17Angel: Interactive Computer Graphics 5E Addison-Wesley 2009Second Subdivision16 final points for1 of 4 patches created18Angel: Interactive Computer Graphics 5E Addison-Wesley 2009NormalsFor rendering we need the normals if we want to shadeCan compute from
16、parametric equationsCan use vertices of corner points to determineOpenGL can compute automatically19Angel: Interactive Computer Graphics 5E Addison-Wesley 2009Utah TeapotMost famous data set in computer graphicsWidely available as a list of 306 3D vertices and the indices that define 32 Bezier patches20Angel: Interactive Computer Graphics 5E Addison-Wesley 2009QuadricsAny quadric can be written as the quadratic form pTAp+bTp+c=0 where p=x, y, zT with
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2024年稅務(wù)工作者工作總結(jié)范文(3篇)
- 2024-2025學(xué)年廣東省清遠(yuǎn)市八校聯(lián)盟高一上學(xué)期教學(xué)質(zhì)量檢測(cè)(二)歷史試卷
- 2025年企業(yè)文化建設(shè)策劃咨詢(xún)協(xié)議
- 2025年企業(yè)數(shù)據(jù)保密共享協(xié)議
- 2025年基礎(chǔ)設(shè)施建設(shè)項(xiàng)目合同律師服務(wù)協(xié)議
- 2025年公司員工協(xié)議范本
- 2025年設(shè)備采購(gòu)租賃合同協(xié)議范本
- 2025年裂隙燈顯微鏡項(xiàng)目立項(xiàng)申請(qǐng)報(bào)告模板
- 2025年醫(yī)藥產(chǎn)品銷(xiāo)售合同樣本
- 2025年頻率測(cè)量?jī)x器項(xiàng)目立項(xiàng)申請(qǐng)報(bào)告模板
- 2025年業(yè)務(wù)員工作總結(jié)及工作計(jì)劃模版(3篇)
- 必修3《政治與法治》 選擇題專(zhuān)練50題 含解析-備戰(zhàn)2025年高考政治考試易錯(cuò)題(新高考專(zhuān)用)
- 二零二五版電商企業(yè)兼職財(cái)務(wù)顧問(wèn)雇用協(xié)議3篇
- 課題申報(bào)參考:流視角下社區(qū)生活圈的適老化評(píng)價(jià)與空間優(yōu)化研究-以沈陽(yáng)市為例
- 深圳2024-2025學(xué)年度四年級(jí)第一學(xué)期期末數(shù)學(xué)試題
- 2024-2025學(xué)年成都市高新區(qū)七年級(jí)上英語(yǔ)期末考試題(含答案)
- 《中南大學(xué)模板》課件
- 廣東省深圳市南山區(qū)2024-2025學(xué)年第一學(xué)期期末考試九年級(jí)英語(yǔ)試卷(含答案)
- T-CSAC 004-2024 軟件供應(yīng)鏈安全要求測(cè)評(píng)方法
- T-CISA 402-2024 涂鍍產(chǎn)品 切口腐蝕試驗(yàn)方法
- 后勤安全生產(chǎn)
評(píng)論
0/150
提交評(píng)論