




版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、4.2 3D transformations nTranslate(平移) transformationsnScale(縮放) transformationsnShear(錯(cuò)切) transformations nRotate(旋轉(zhuǎn)) transformationsnReflect(反射) transformationsnComposition(復(fù)合) of 3D transformationsn與二維平移變換類(lèi)似地運(yùn)用齊次坐標(biāo)表示為:110001000100011zyxtttzyxzyx記為:PTP其中參 數(shù)zyxttt,是 平 移 距 離Translate transformation11
2、zyxtzztyytxx記為:PSP110000000000001zyxssszyxzyxScale transformationnAbout origin11zszysyxsxzyxCont.nAbout arbitrary point),(fffzyxThe arbitrary reference point is :Cont.nAbout arbitrary pointtranslate, scale about origin, inverse translatenConsists of:),(fffzyxnThe arbitrary reference point is :Cont.那
3、么變換矩陣為:),(),(),(fffzyxfffzyxTsssSzyxTT1000)1 (00)1 (00)1 (00fzzfyyfxxzssyssxssShear transformationsnDependence axis(依賴(lài)軸: corresponding coordinate is remained nDirection axis方向軸: corresponding coordinate is changed linearly nRepresentations:zcyzyyayxxY為依賴(lài)軸:zzbzyyazxxz為依賴(lài)軸:zcxzybxyxxX為依賴(lài)軸:n變換的普通表達(dá)式是:S
4、hear transformations11212121zycxczzbyxbyzayaxx1000010101212121ccbbaaSHnParameters: rotate axis, rotate anglen二維旋轉(zhuǎn)變換是三維空間中繞Z軸的旋轉(zhuǎn)11000010000cossin00sincos1zyxzyx記為:PRPz)(XYZRotate transformationRotate about X axisEqually with changing the coordinate system x,y,z to the coordinate system y,z,x. 110000c
5、ossin00sincos000011zyxzyxPRPX)(YZXXYZRotate about Y axisChanging system x,y,z to system z,x,y110000cos0sin00100sin0cos1zyxzyxZXYXYZ?:about arbitrary linen是關(guān)于某直線或平面進(jìn)展的n關(guān)于某個(gè)軸進(jìn)展的反射變換等同于關(guān)于該軸做180度的旋轉(zhuǎn)變換nFor instance: about Z axis1000010000100001TReflect transformation反射變換?:about arbitrary symmetry axisCon
6、t.n當(dāng)反射平面是坐標(biāo)平面時(shí),等同于進(jìn)展左、右手坐標(biāo)系的互換,相應(yīng)變換矩陣是把第三維坐標(biāo)值取反nFor instance: about XOY plane1000010000100001T?About arbitrary symmetry planenFor instance: rotating about arbitrary line nOverlapping arbitrary line with Z axisnResolving a series of problems nReflect about an arbitrary symmetry linenReflect about an
7、arbitrary symmetry plane Composition transformationsn旋轉(zhuǎn)軸不與坐標(biāo)軸重合時(shí)變換的實(shí)現(xiàn):n經(jīng)復(fù)合變換使旋轉(zhuǎn)軸與某坐標(biāo)軸重合n繞指定軸進(jìn)展旋轉(zhuǎn)變換n復(fù)原坐標(biāo)系假設(shè)給定旋轉(zhuǎn)軸),;,( :22211121zyxzyxPP和旋轉(zhuǎn)角 YZXP1P2Rotate about arbitrary line1translate P1 to overlap origin10001000100011111zyxT無(wú)妨設(shè)P1P2為方向單位矢量,P2點(diǎn)坐標(biāo)為(a,b,c)YZxP1P2YZxCont.cbaXYZOP1P2XYZCont.Cont.cbaP1P2X
8、YZ(2)rotate about X axis to put the line on XOZcbaXYZCont.(2)rotate about X axis to put the line on XOZcbaXYZCont.(2)rotate about X axis to put the line on XOZcbaXYZCont.(2)rotate about X axis to put the line on XOZcbaXYZCont.(2)rotate about X axis to put the line on XOZcbaXYZCont.(2)rotate about X
9、axis to put the line on XOZcbaXYZCont.(2)rotate about X axis to put the line on XOZcbaXYZ2222sincoscbbcbcCont.(2)rotate about X axis to put the line on XOZ22100000000001cbdwhereasdcdbdbdcRxThen P2 is (a,0,d)Transformation matrix(變換矩陣cbaXYZ), 0 ,(daCont.(3) Rotate about Y axis to overlap the line wit
10、h Z axisXYZadsincosCont.100000001000daadRyXYZ(4) Rotate about Z axis namely the line through )(2zRTCont.XYZP1P2Cont.(4)recover the coordinate systemThe final transformation is: R()=T1-1Rx-1(-)Ry-1() Rz()Ry()Rx()T1Cont.n關(guān)于恣意直線(或平面)的反射可以分解為平移、旋轉(zhuǎn)使得指定的反射直線或平面與某坐標(biāo)軸或平面重合和關(guān)于坐標(biāo)直線(或坐標(biāo)平面)的反射,再加恢復(fù)變換。Exercises
11、out classroomExercise 4.11Given a unit cube with one corner at (0,0,0) and another opposite corner at (1,1,1),derive the transforations necessary to rotate the cube by degree about the main diagonal(對(duì)角線 (from( 0,0,0) to (1,1,1) in the counterclockwise direction when looking along the diagonal toward
12、 the origin. Exercises out classroomExercise 4.14An object is to be scaled by a factor S in the direction whose direction cosines are (,).Derive the transformation matrix .Two methods of transformationnCoordinate system fixed, Graphics changednGraphics fixed, Coordinate system changed (1)坐標(biāo)系不變,圖形變換;
13、 (2)圖形不變,坐標(biāo)系變換.變換的兩種實(shí)現(xiàn)方法:Transforming coordinate systemnTwo means:nDefine the new coordinate system directlynDefine a vector in y direction of the new coordinate systemCont.1. Define a new system: composition of transformations(x0,y0)(1) translate: T-x0,-y0(2) rotate:R(-)(3) scale(4) composition of
14、above transformations (notice the sequence)Cont.nThe matrix is:),()(00yxTR100)cos()sin()sin()cos(00yxnamely:Cont.2. Define a vector in y direction of new system:Y axis is: (x0,y0)(x1,y1),(0101yxyvvPPPPX axis is:),(),(yxxyxuuvvTransformation is:10000yvvxuuyxyxContrast (x0,y0)100cossinsincos00yx(x0,y0
15、)(x1,y1)10000yvvxuuyxyxVS.XYZXYZ新坐標(biāo)系的原點(diǎn)坐標(biāo)是),(000zyx,三個(gè)坐標(biāo)軸的單位向量分別是),(),(),(zyxzyxzyxnnnvvvuuu nTransform from an old coordinate system to another new coordinate systemnThe new system is shown in the right figure:Mode transformationCont.nComposition of translation and rotation:當(dāng)坐標(biāo)系運(yùn)用不同的縮放時(shí),還需定義縮放補(bǔ)償。10
16、001000100011000000000zyxnnnvvvuuuTzyxzyxzyx4.3 window-to-viewport transformationnWorld Domain(用戶(hù)域WD)n指程序員用來(lái)定義草圖的整個(gè)自然空間.nWorld-coordinate system(用戶(hù)坐標(biāo)系WC).n世界坐標(biāo)系n右手直角坐標(biāo)系nWindow(窗口區(qū)W)n在用戶(hù)坐標(biāo)系(世界坐標(biāo)系WC中預(yù)先選定的將產(chǎn)生圖形顯示的區(qū)域稱(chēng)為窗口Related conceptsCont.nScreen Domain(屏幕域SD)n設(shè)備輸出圖形的最大區(qū)域,是有限的整數(shù)域.nViewport(視圖區(qū)V)n在顯示器坐標(biāo)
17、系中規(guī)定的顯示圖形的區(qū)域稱(chēng)為視圖區(qū).nScreen coordinates屏幕坐標(biāo)系n(normalized) device coordinatesndevice coordinates: addressing by pixelsnNDC: -1,1-a,a窗口的取景器作用Window as a viewfinder利用窗口尺寸變化改動(dòng)顯示圖形的大小 選窗口的視見(jiàn)變換選窗口的視見(jiàn)變換Cont.n視見(jiàn)變換將用戶(hù)坐標(biāo)系中窗口內(nèi)的圖形變換到顯示器中的視見(jiàn)區(qū)中產(chǎn)生顯示.Window-to-Viewport transformationwindowWxlWxrWybWytP(x,y)VxlVxrview
18、portVybVytP(x,y)VxlVxrVxlxWxlWxrWxlxVybVytVybyWybWytWybyWybWytVybVytWybVybyWybWytVybVytyWxlWxrVxlVxrWxlVxlxWxlWxrVxlVxrxCont. WybSVybdyWybWytVybVytSWxlSVxldxWxlWxrVxlVxrSyyxx,設(shè)dyySydxxSxyx則Cont.1100001yxdysdxsyxyxtransform matrix窗口WxlWxrWybWytWxlWxrWybWyt-VxlVxrVybVyt-VxlVxrvybVytCont.VxlVxrVybVytNDC-to-DC transformationnNDC: -1,1-a,anDC: 0,M-10,N
溫馨提示
- 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ì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 安全專(zhuān)項(xiàng)施工方案需要進(jìn)行專(zhuān)家論證的是
- 高效率團(tuán)隊(duì)協(xié)作技巧培訓(xùn)計(jì)劃書(shū)
- 農(nóng)業(yè)行業(yè)物聯(lián)網(wǎng)技術(shù)與應(yīng)用方案
- 農(nóng)村金融服務(wù)與合作社發(fā)展指南
- 語(yǔ)音智能家居怎么安裝
- 項(xiàng)目調(diào)研報(bào)告及分析
- 體育產(chǎn)業(yè)發(fā)展規(guī)劃細(xì)節(jié)對(duì)比表
- 主管護(hù)師內(nèi)科護(hù)理復(fù)習(xí)測(cè)試題
- 物流配送系統(tǒng)操作規(guī)程
- 農(nóng)業(yè)產(chǎn)業(yè)鏈協(xié)同創(chuàng)新方案與實(shí)踐手冊(cè)
- 部編版語(yǔ)文市級(jí)公開(kāi)教學(xué)講座《口語(yǔ)交際》培訓(xùn)課件
- 高中英語(yǔ)-新外研版必修一unit5-The-Monarchs-Journey-公開(kāi)課reading課件
- 氣象報(bào)文日常航空天氣報(bào)告電報(bào)翻譯
- 建設(shè)項(xiàng)目用地預(yù)審與選址意見(jiàn)課件講解
- DB44∕T 1049-2012 物業(yè)服務(wù) 綠化養(yǎng)護(hù)檢查規(guī)范
- 腹膜透析治療的護(hù)理-課件資料
- 國(guó)家開(kāi)放大學(xué)《調(diào)劑學(xué)(本)》形考任務(wù)1-4參考答案
- 幼兒園小班繪本:《一步一步_走啊走》 PPT課件
- 《基礎(chǔ)和聲學(xué)》試習(xí)題庫(kù)(6套答案)
- 馬克思主義政治經(jīng)濟(jì)學(xué)課程講義
- SolidWorks、CAD三維建模練習(xí)習(xí)題圖
評(píng)論
0/150
提交評(píng)論