计算机图形学复习提纲资料.ppt

  1. 1、本文档共58页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
* F(x,y)=ax+by+c=0 F(x+1,y+0.5) =0 (x+1,y+1) 或(x+1,y) F(x+1,y+0.5) >0 中点在直线上方,选(x+1,y) F(x+1,y+0.5) <0 中点在直线下方,选(x+1,y+1) * F(x,y)=ax+by+c=0 F(x+1,y+0.5) =0 (x+1,y+1) 或(x+1,y) F(x+1,y+0.5) >0 中点在直线上方,选(x+1,y) F(x+1,y+0.5) <0 中点在直线下方,选(x+1,y+1) * * * * Def. A world-coordinate area selected for display is called a window. Def. An area on a display device to which a window is mapped is called a viewport. Def. In general, the mapping of a part of a world-coordinate scene to device coordinate is referred to as a viewing transformation * 6.2 2D Clipping Operations Definition of Clipping any procedure that identifies those portions of a picture that are either inside or outside of a specified region of space is referred to as a clipping. Clipping time window clipping viewport clipping * This is one of the oldest and most popular line-clipping procedures. Generally, the method speeds up the processing of line segments by performing initial tests that reduced the number of intersections that must be calculated. Lines are defined by their endpoints, so it should be possible just to examine these, and not every pixel on the line Most applications of clipping use a window that is either very large, I.e. nearly the whole scene fits inside, or very small, I.e. most of the scene lies inside the window Hence, most lines may be either trivially accepted or rejected * IDEA -- Faster line clipping algorithm, based on analysis of the parametric equation of a line segment Parametric Equation two endpoints (x1,y1), (x2,y2) x=x1+(x2-x1)u y=y1+(y2-y1)u, 0<=u<=1 * Algorithm Description Computing Pk, Qk, k=1~4 Judge if there any Pk= 0, then the line is parallel to one of the clipping boundaries. If, for that value of k, we also find Qk < 0, then the line is completely outside the boudary, otherwise the line is inside the boudary for case Pk<>0, calculate the value of u that corresponds to the intersection point as Qk/Pk For each line, calculate two parameters u1&u2 tha

文档评论(0)

文档资料 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档