HP b2600 Reference Manual page 275

Opengl 1.1 reference
Hide thumbs Also See for b2600:
Table of Contents

Advertisement

All polynomial or rational polynomial splines of any degree (up to the maximum degree
supported by the GL implementation) can be described using evaluators. These include
almost all splines used in compute graphics: B-splines, Bezier curves, Hermite splines,
and so on.
Evaluators define curves based on Bernstein polynomials. Define p(û) as
p u ˆ
Equation 11-1
where R
= n + 1):
Equation 11-2
Recall that:
Equation 11-3
glMap1 is used to define the basis and to specify what kind of values are produced. Once
defined, a map can be enabled and disabled by calling glEnable and glDisable with the
map name, one of the nine predefined values for target described below. glEvalCoord1
evaluates the one-dimensional maps that are enabled. When glEvalCoord1 presents a
value u, the Bernstein functions are evaluated using û, where
Equation 11-4
target is a symbolic constant that indicates what kind of control points are provided in
points, and what output is generated when the map is evaluated. It can assume one of
nine predefined values:
GL_MAP1_VERTEX_3
Each control point is three floating-point values representing x, y, and z. Internal
glVertex3 commands are generated when the map is evaluated.
GL_MAP1_VERTEX_4
Each control point is four floating-point values representing x, y, z, and w. Internal
glVertex4 commands are generated when the map is evaluated.
GL_MAP1_INDEX
Each control point is a single floating-point value representing a color index. Internal
glIndex commands are generated when the map is evaluated but the current index is not
updated with the value of these glIndex commands.
GL_MAP1_COLOR_4
Chapter 11
n
n
u ˆ R
=
B
i
i
i
=
0
is a control point and Bin(û ) is the ith Bernstein polynomial of degree n (order
i
n
n
i
B
u ˆ
=
u ˆ
1 u ˆ
i
i
n
0
0
1and
1
0
u u1
u ˆ
----------------- -
=
u2 u1
n i –
M
glMap1
275

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents