12.11.2014 Views

CPSC 424 Rational Curves Syllabus - Ugrad.cs.ubc.ca

CPSC 424 Rational Curves Syllabus - Ugrad.cs.ubc.ca

CPSC 424 Rational Curves Syllabus - Ugrad.cs.ubc.ca

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Rational</strong> <strong>Curves</strong><br />

Other properties:<br />

• Convex hull<br />

• Curve interpolates start and endpoint (rational Bézier<br />

only)<br />

• De Casteljau, de Boor and other algorithms now have<br />

to be performed in homogeneous coordinates!<br />

© Alla Sheffer & Wolfgang Heidrich<br />

OpenGL<br />

void gluNurbsCurve( GLUnurbsObj *nobj, GLint nknots,<br />

GLfloat *knot, GLint stride, GLfloat *ctlarray, GLint order,<br />

GLenum type )<br />

nobj - pointer to object created by gluNewNurbsRenderer<br />

nknots - number of knots<br />

knot – knot vector<br />

stride - “width” = dimension<br />

ctlarray - array of control points.<br />

order - degree+1<br />

type - enum of types<br />

© Alla Sheffer & Wolfgang Heidrich<br />

4

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!