EasyManuals Logo

HP b2600 Reference Guide

HP b2600
486 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #275 background imageLoading...
Page #275 background image
M
glMap1
Chapter 11
275
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
Equation 11-1
where R
i
is a control point and Bin(û ) is the ith Bernstein polynomial of degree n (order
= 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
pu
ˆ
() B
i
n
u
ˆ
()R
i
i 0=
n
=
B
i
n
u
ˆ
()
n
i


u
ˆ
i
1 u
ˆ
()
ni
=
0
0
1and
n
0


1
u
ˆ
uu1
u2 u1
------------------
=

Table of Contents

Other manuals for HP b2600

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the HP b2600 and is the answer not in the manual?

HP b2600 Specifications

General IconGeneral
BrandHP
Modelb2600
CategoryDesktop
LanguageEnglish

Related product manuals