香港大学计算机图形学课件ChapterA.pptVIP

  • 1
  • 0
  • 约6.39千字
  • 约 40页
  • 2017-04-02 发布于江苏
  • 举报
香港大学计算机图形学课件ChapterA

Chapter 12 Curves and Surfaces Curves are approximated with straight line segments Curves defined using functions: ellipses, parabola, cos(u), e-u, rational functions, … Curves defined via control points: Polynomials that pass through the points Piecewise polynomials (cubic splines), … Bézier curves B-splines Non-Uniform Rational B-Splines (NURBS) A more efficient algorithm First compute all the bn,i’s from a recursive definition before the summation. void BezierCurve( GLfloat cp[][3], int np, double u, GLfloat p[]) { double b[100], x, y, z, u1; int n = np - 1;

文档评论(0)

1亿VIP精品文档

相关文档