版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、1计算机图形学总复习3授课教师:郭芬红授课教师:郭芬红Email: Email: 办公室办公室: : 四教西四教西204204北方工业大学理学院数学系北方工业大学理学院数学系20201 14 42Ch9. 3-D Object Representations三维对象表示33D Object RepresentationsnGraphics scenes contain many different kinds of objects and material surfaces:nsolid geometric objectsntrees, flowers, clouds, rocks, wate
2、r, .nThere is NO SINGLE method can describe objects that will include all characteristics of these different matrials!43D Object Representationsnfor solid objects : two categories of representation schemesnsurface models = boundary representations (B-Reps) ninterior models = Space-partitioning repre
3、sentationsnfor natural objects : nprocedural modelsnfor nonrigid behavior: nphysically based modelsn5n计算机中表示三维形体的模型, 按照几何特点进行分类,大体上可以分为三种:n线框模型n表面模型n实体模型 Wireframe model Surface model Solid model - Constructive Solid Geometry - Hierarchical Partition Representation - Boundary Representation6n如果按照表示物
4、体的方法进行分类,实体模型基本上可以分为三大类:n层次分解表示 (Hierarchical Partition Repre.)n常用的分解表示法有:四叉树、八叉树、多叉树、BSP树等等。n构造表示CSG(Constructive Solid Geometry)n构造表示的主要方法:扫描表示、构造实体几何表示、特征和参数化表示。n边界表示B-Reps(Boundary Representation)n多边形平面、样条曲面7主要讲述:nII-1: Constructive Solid Geometry 构造实体几何nII-2: Quadtrees & Octrees空间单元表示法:四叉树与八叉树n
5、III. Curves and Surfaces曲线与曲面n分形88n四叉树将2D平面分为4个象限(quadrant)。n四叉树的每个结点有4个数据元素,都在此区域内。n如果一个象限有同样的颜色,则该结点的数据元素存储该颜色,不再细分 。n否则,该象限继续细分,直到该象限有均匀的颜色或细分为一个像素不能再细分为止。四叉树Quadtree Representation9Quadtree Example 1nExample: quadtree representation for a region containing one foreground-color pixel on a solid b
6、ackground10Quadtree Example 1nExample: quadtree representation for a region containing one foreground-color pixel on a solid background11Quadtree Example 1nExample: quadtree representation for a region containing one foreground-color pixel on a solid background12Quadtree Example 2nsuitable for repre
7、senting (2D) images13Quadtree Example 31414n3D空间的八叉树表示是2D平面四叉树表示的扩展。n八叉树编码将3D区域分为8个象限(octant),每个结点存储8个数据元素。n3D空间的每个元素称为体元 voxels。n当一个象限的所有体元有相同类型时,该类型被存储在该结点的相应数据元素中,结点不再被细分。八叉树Octree representation15Octree Example 116nCubic SplinenHermite InterpolationnBzier Curves and SurfacesnB-Spline Curves and
8、Surfaces17Hermite Interpolation (1)ntangent Dpk+1 specified at each control pointnlocal influence of control points111 (0(0)(1) 0,.,1)(0)kkkkkkkkPDpPPpPpkDpn+=-18Hermite Interpolation (2)19Hermite Interpolation (3) MH: Hermite matrix ( 埃尔米特矩阵埃尔米特矩阵)20Hermite Interpolation (4)21Hermite Interpolation
9、(5)()101231( )( )( )( )( )kkkkkppP uH uH uH uH uDpDp+骣=桫320321323324( )231,( )23( )2( )H uuuH uuuH uuuuH uuu=-+= -+=-+=-22Hermite Interpolation (6)n这些混合函数比较平滑,但是在计算机图形学和CAD中并不直接应用Hermite形式,因为我们通常有的是数据点,而不是导数。nHermite形式是Bzier形式的基础Hk(u): blending functions (混合函数混合函数)23nCubic SplinenHermite Interpolati
10、onnBzier Curves and SurfacesnB-Spline Curves and Surfaces24Beziers IdeanIn graphics and CAD, we do not usually have derivative datanBezier suggested using the same 4 data points as with the cubic interpolating curve to approximate the derivatives in the Hermite form (用三次插值曲线中同样的四个数据点逼近Hermite形式中的导数)
11、25Approximating Derivativesp1 located at u=1/3slope p(0)slope p(1)p2 located at u=2/326EquationsnInterpolating conditions are the same:nApproximating derivative conditions:nSolve four linear equations for:27Cubic Bzier Curve Matrix 28Bezier Blending Functions (Bezier混合函数)Note that all zeros are at 0
12、 and 1 which forcesthe functions to be smooth over (0,1)29Bzier Curves Propertiesn(1) P(u) polynomial of degree n, global influencen(2) P(u) interpolates start and endpointn(3) tangents at start and endpointn(4) convex hull property30Convex Hull Property (凸包性质)nAll Bezier curves lie in the convex hu
13、ll of their control points (所有的Bzier曲线位于它们的控制点形成的凸包内)nHence, even though we do not interpolate all the data, we cannot be too far away (因此,即使不插值所有的数据,所得结果也不会离数据太远)31Bernstein polynomials (伯恩斯坦多项式)nBezier混合函数是Bernstein多项式的一种特殊情形n这些多项式定义了任意次数Bzier形式的混合多项式n所有零点在0和1处n对任意次数,所有多项式的和等于1n在(0,1)内它们的值都在0与1之间3
14、2Bezier方法的局限性n控制点的数目决定曲线的阶次,n+1个顶点产生n次曲线n没有局部性n逼近的方法33General Bzier Curves nspline approximation for points pi , i=0,., n where blending functions BEZk,n are Bernstein polynomials:342-Dim. Bzier Curves Examplesngenerated from 3, 4, and 5 control points35ExampleGLfloat ctrlPts43 = -40.0, 40.0, 0.0, -
15、10.0, 200.0, 0.0, 10.0, -200.0, 0.0, 40.0, 40.0, 0.0 ; glMap1f(GL_MAP1_VERTEX_3, 0.0, 1.0, 3, 4, *ctrlPts);glEnable(GL_MAP1_VERTEX_3);GLint k;glColor3f(0.0, 0.0, 1.0); glBegin(GL_LINE_STRIP); / generate Bezier curve for ( k=0; k=50; k+) glEvalCoord1f(GLfloat(k)/50.0);glEnd();glColor3f(1.0, 0.0, 0.0)
16、;glPointSize(5.0);glBegin(GL_POINTS); / plot control points for ( k=0; k4; k+) glVertex3fv(&ctrlPtsk0);glEnd(); 3637分形n分形(fractal)是指具有自相似特性的现象、图像或者物理过程等。分形学诞生于1970年代中期,属于现代数学中的一个分支。分形学的创始人是具有法国和美国双重国籍的曼德布罗特Mandelbrot381)F具有具有精细的结构精细的结构,即是说在任意小的尺度之下,它总,即是说在任意小的尺度之下,它总有复杂的细节;有复杂的细节;2)F是如此地是如此地不规则不规则,以至它的整
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2027年4月心理咨询师考试理论知识真题(完整版)及答案
- 初中生物实验观察动物细胞质壁分离复原实验技巧训练试题及答案
- 初中地理俄罗斯东西伯利亚地区气候特征训练试题及答案
- 2026年高一年级秋学期化学第一周人教版(2019)必修一周末小测卷及答案
- 2026年新四川省安全员b证继续教育考试题库及答案
- 2026年马克思主义基本原理考试试题及答案解析
- 2026年滦平辅警考试题库(附答案)
- 2025年四川省机关事业单位工人技术等级考试(公共服务岗位工)历年参考题库含答案详解
- 2025年山西省辅警招聘试题(含答案)
- 2027年中国铁路西安局集团有限公司招聘高校毕业生466人(一)考试备考题库及答案解析
- 2027年度中国储备粮管理集团有限公司校园招聘考试参考试题及答案解析
- 护理脑梗死课件
- 2026年心内科常见模拟试题及答案
- 中国出版集团校园招聘笔试题目2026
- 基于统计方法的蒙古文自动词性标注体系构建与效能探究
- 《现金规划》课件
- 2026年中国ESG发展观察报告
- 中国超薄取向硅钢行业产销需求与发展态势展望研究报告
- 《中医内科学》课件-肾系病证-水肿
- 商务数据分析复习题(含参考答案)
- 【MOOC】美术鉴赏-河南理工大学 中国大学慕课MOOC答案
评论
0/150
提交评论