计算机图形学基于任意点的旋转变换.ppt_第1页
计算机图形学基于任意点的旋转变换.ppt_第2页
计算机图形学基于任意点的旋转变换.ppt_第3页
计算机图形学基于任意点的旋转变换.ppt_第4页
计算机图形学基于任意点的旋转变换.ppt_第5页
已阅读5页,还剩33页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、Rotate transformation about arbitrary point,Suppose the point is then the transformation can be composed by some fundamental transformations,Cont.,Scaling about arbitrary point,Reference point: , fixup point before and after scaling,Composition of translate, scale about origin, and inverse translate

2、 transformations,Cont.,Namely:,Symmetry about arbitrary line,T,R,S,4.2 window-to-viewport transformation,World Domain(用户域WD) 指程序员用来定义草图的整个自然空间. Window(窗口区W) 在用户坐标系(世界坐标系WC)中预先选定的将产生图形显示的区域称为窗口. World-coordinate system(用户坐标系WC) 世界坐标系 右手直角坐标系,Related concepts,Cont.,Screen Domain(屏幕域SD) 设备输图形的最大区域,是有限的

3、整数域. Viewport(视图区V) 在显示器坐标系中规定的显示图形的区域称为视(图)区. Screen coordinates (normalized) device coordinates device coordinates: addressing by pixels NDC: -1,1-a,a,Window as a viewfinder,Cont.,视见变换将用户坐标系中窗口内的图形变换到显示器中的视见区中产生显示.,Window-to-Viewport transformation,Cont.,Cont.,transform matrix,窗口,Wxl,Wxr,Wyb,Wyt,C

4、ont.,NDC-to-DC transformation,NDC: -1,1-a,a DC: 0,M-10,N-1 Considering its discrete feature: -0.5,M-1.5-0.5,N-1.5 The same linear transformation as the W-to-V transformation Whereas:,Flow chart of 2D view,二维图形显示流程,Exercises,Exercise 4.1 Exercise 4.2 Exercise 4.3,4.3 3D transformations,Translate(平移)

5、transformations Rotate(旋转) transformations Scale(缩放) transformations Reflect(反射) transformations Shear(错切) transformations Composition(复合) of 2D transformations,与二维平移变换类似地使用齐次坐标表示为:,记为:,其中,Translate transformation,Translate transformation,Remarked:,Whereas:,Translate,记为:,Scale transformation,About o

6、rigin,Cont.,About arbitrary point,The arbitrary reference point is :,Cont.,About arbitrary point,The arbitrary reference point is :,Cont.,则变换矩阵为:,Parameters: rotate axis, rotate angle 二维旋转变换是三维空间中绕Z轴的旋转,记为:,Rotate transformation,Rotate about X axis,Equally with changing the coordinate system x,y,z t

7、o the coordinate system y,z,x.,Rotate about Y axis,Changing system x,y,z to system z,x,y,?:about arbitrary line,是关于某直线或平面进行的 关于某个轴进行的反射变换等同于关于该轴做180度的旋转变换 For instance: about Z axis,Reflect transformation,?:about arbitrary symmetry axis,Cont.,当反射平面是坐标平面时,等同于进行左、右手坐标系的互换,相应变换矩阵是把第三维坐标值取反 For instance

8、: about XOY plane,?About arbitrary symmetry plane,Cont.,关于任意直线(或平面)的反射可以分解为平移、旋转(使得指定的反射直线或平面与某坐标轴或平面重合)和关于坐标直线(或平面)的反射。,Shear transformations,Dependence axis: corresponding coordinate is remained Direction axis: corresponding coordinate is changed linearly Representations:,变换的一般表达式是:,Shear transfor

9、mations,Two methods of transformation,Coordinate system fixed, Graphics changed Graphics fixed, Coordinate system changed new coordinate system is saw as a graphics and transformed to overlap with the original coordinate system,Transforming coordinate system,Two means: Define the new coordinate system directly Define a vector in y direction of the new coordinate system,Cont.,Define a new system: composition of transformations,(1)translate: T(-x0,-y0) (2)rotate:R(-) (3)scale (4)composition of above transformati

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论