计算机辅助设计(长安大学)chapter-2 bezier curve.pptVIP

  • 1
  • 0
  • 约3.17千字
  • 约 23页
  • 2018-06-23 发布于浙江
  • 举报

计算机辅助设计(长安大学)chapter-2 bezier curve.ppt

计算机辅助设计(长安大学)chapter-2 bezier curve

7.2.2 Bezier curves Define a curve based on approximation Definition method: Two points at the two ends of a curve; Several points that not on the curve but can determine the shape of the curve (Multi-solutions Compared with. interpolation) Slide * Copyright, JING Shu-xu, Information School of Chang’an University Email: sxjing@chd.edu.cn * P. Bezier of Renault, P. de Casteljau of Citroen Intuitive interaction: Direct manipulation Approximated curve vs. Interpolated curve Control points 7.2.2 Bezier curves 从模型或手绘草图上取得数据后,用绘图工具绘出曲线图,然后从这张图上大致定出Bezier特征多边形各控制顶点的坐标值,并输入计算机进行交互的几何设计,调整特征多边形顶点的位置,直到得出满意的结果为止;最后用绘图机绘出曲线样图。 7.2.2 Bezier curves * Bezier curve defined by 4 points 7.2.2 Bezier curves * Pull by coincident control points 7.2.2 Bezier curves * Closed Bezier curve 7.2.2 Bezier curves * Influence of point position 7.2.2 Bezier curves Mathematical definition of Bezier curve Given n+1 control points Pi(i=0,1,…,n),a Bezier curve of degree n is defined as following: Bi,n(t) is called Bernstein Basis. Polygon P0 P1… Pn is called the control polygon of P(t). Points P0,P1… Pn are called cotrol points of P(t). (2)二次Bezier曲线 Defined by three control points Which is a parabola(抛物线) through P0 and P2 . (1)一次Bezier曲线 Defined by two control points Which is a straight line segment with ends at P0 and P1 Mathematical definition of Bezier curve P(t) = (1-t)P0 + tP1 P(t) = (1-t)2P0 + 2t(1-t)P1 + t2P2 4 hours (3)三次Bezier曲线 The most widely used Bezier curve is of degree 3, which is defined by four control points. It is easy to get the four Bernstein basis. The corresponding Bezier curve is: 实际应用的主要是三次Bezier曲线。利用它的参数表达式在区间(0,1)内取多个值,例如1000,计算出这1000个值对应的坐标点,依次连接这些点就得到一条Bezier曲线。 为程序设计方便,改写曲线的表达式为: Programming of Bezier curve 注意:再添加一个z 坐标,就可得到空间Bezier曲线。 Programming of Bezier curve 1)端点性质 End points ? 曲线经过特征多边形的首末点。因为 P(0)=P0 P(1) = Pn ? 曲线P(t)在P0点与边P0P1相切,在Pn 点与Pn-1Pn相切。因为 P’(0)=n(p1-p0), P’(1) = n( Pn- Pn-1) 2)对称性 Symmetry 由Bernstein基函数的对

文档评论(0)

1亿VIP精品文档

相关文档