Professional Documents
Culture Documents
Bézier Curves & Surfaces: Glenn G. Chappell
Bézier Curves & Surfaces: Glenn G. Chappell
Glenn G. Chappell
CHAPPELLG@member.ams.org
U. of Alaska Fairbanks
y
t = 3 (end)
(t2–2t, t–1)
t = 0 (start)
P1
P3
P0
P2
P1 P1
P3 P3
P0 P0
P2 P2
P0
P2 P2
P0 P0
P1 P1
P0 P1 P3
glBegin(GL_LINE_STRIP);
for (int i=0; i<=numdrawsegs; ++i)
{
GLdouble t = GLdouble(i)/numdrawsegs;
glEvalCoord1d(t);
}
glEnd();
glEvalMesh1(GL_LINE, 0, numdrawsegs);