CG2014总复习2概要1.ppt

CG2014总复习2概要1

《计算机图形学》 总复习2 授课教师:郭芬红 Email: guofenhong@163.com 办公室: 四教西204 北方工业大学理学院数学系 2014 Ch6. Geometric Transformations 几何变换 What can transformations do? Transformation changes an objects: Position 位置 (translation,平移) Size 尺寸 (scaling,缩放) Orientation 方向 (rotation,旋转) Shapes 形状 (shear,错切) 2D Transformation matrices translation 平移 rotation 旋转 scaling 缩放 Homogeneous Coordinates 2D Transformation matrices translation rotation scaling Homogenous coordinates properties translation, rotation: additive scaling: multiplicative Inverse Transformations translation: rotation: scaling: Composite Transformations Simple Composite Transformations composite translations composite rotations composite scaling Complex Composite transformations Geometric transformations around a point (二维基准点变换) Complex operations are divided into more simple ones Traslation does not depend on a reference point Rotation around a center of rotation (xr, yr) Translating the object (-xr,-yr) Rotation Undo translation Scaling around a reference point (xs,ys) Translating the object (-xr,-yr) Scaling Undo translation general pivot-point rotation general fixed-point scaling general scaling directions Example translate by (3,4), then rotate by 45° and then scale up by factor 2 in x-direction. 2D Transformations Basic 2D Transformations (基本二维变换) Homogenous coordinates (齐次坐标) Composite transformations (复合变换) Other Transformations (其它一些变换) Reflection Shear Affine transformations Reflection 对称(反射、镜像)变换 about x-axis: about y-axis: Reflection about a point? Reflection about the axis with angleα? Reflection with respect to a general line? Reflection with respect to a general line? 示例 示例源码 示例源码 Ch7. 2-D Viewing 二维观察 2D Viewing-Transformation Pipeline Cohen-Sutherland Line Clipping (1974,Dan Cohen,Ivan Sutherland) assignment of region codes to line endpoints 4-bit code: CTop CBottom CRright CLeft (注:按上下右左的顺序) 编码裁剪法端点编码规则 第1位为1,位于窗口左侧 第2位为1,位于

文档评论(0)

1亿VIP精品文档

相关文档