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.

OpenGL - example<br />

GLfloat knots[8] = {<br />

0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0<br />

};<br />

gluBeginCurve(nurb);<br />

gluNurbsCurve(nurb, 8, knots, 3, &ctlpoints[0][0],<br />

4, GL_MAP1_VERTEX_3);<br />

gluEndCurve(nurb);<br />

© Alla Sheffer & Wolfgang Heidrich<br />

Subdivision <strong>Curves</strong><br />

Represent smooth curve by approximating<br />

polyline<br />

At the limit = curve<br />

Each iteration<br />

• Add new points (~double)<br />

• Approximating - Move old points<br />

• Interpolating – Keep old points<br />

© Alla Sheffer & Wolfgang Heidrich<br />

5

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

Saved successfully!

Ooh no, something went wrong!