1GLEVALPOINT(3G)                  OpenGL Manual                 GLEVALPOINT(3G)
2
3
4

NAME

6       glEvalPoint - generate and evaluate a single point in a mesh
7

C SPECIFICATION

9       void glEvalPoint1(GLint i);
10
11       void glEvalPoint2(GLint i, GLint j);
12

PARAMETERS

14       i
15           Specifies the integer value for grid domain variable i.
16
17       j
18           Specifies the integer value for grid domain variable j
19           (glEvalPoint2 only).
20

DESCRIPTION

22       glMapGrid() and glEvalMesh() are used in tandem to efficiently generate
23       and evaluate a series of evenly spaced map domain values.  glEvalPoint
24       can be used to evaluate a single grid point in the same gridspace that
25       is traversed by glEvalMesh(). Calling glEvalPoint1 is equivalent to
26       calling
27
28           glEvalCoord1(
29
30
31
32                                       i
33
34                                       Δ
35                                       u
36
37                                   +
38
39                                       u
40                                       1
41
42
43                          );
44
45
46       where Δ u = u 2 - u 1 n
47
48       and n, u 1, and u 2 are the arguments to the most recent glMapGrid1()
49       command. The one absolute numeric requirement is that if i = n, then
50       the value computed from i ⋅ Δ u + u 1 is exactly u 2.
51
52       In the two-dimensional case, glEvalPoint2, let
53
54       Δ u = u 2 - u 1 n
55
56       where n, u 1, u 2, m, v 1, and v 2 are the arguments to the most recent
57       glMapGrid2() command. Then the glEvalPoint2 command is equivalent to
58       calling
59
60           glEvalCoord2(
61
62
63
64                                  i
65
66                                  Δ
67                                     u
68
69                                 +
70
71                                     u
72                                     1
73
74                              ,
75
76
77                                  j
78
79                                  Δ
80                                     v
81
82
83                                 +
84
85                                     v
86                                     1
87
88
89                          );
90
91
92       The only absolute numeric requirements are that if i = n, then the
93       value computed from i ⋅ Δ u + u 1 is exactly u 2, and if j = m, then
94       the value computed from j ⋅ Δ v + v 1 is exactly v 2.
95

ASSOCIATED GETS

97       glGet() with argument GL_MAP1_GRID_DOMAIN
98
99       glGet() with argument GL_MAP2_GRID_DOMAIN
100
101       glGet() with argument GL_MAP1_GRID_SEGMENTS
102
103       glGet() with argument GL_MAP2_GRID_SEGMENTS
104

SEE ALSO

106       glEvalCoord(), glEvalMesh(), glMap1(), glMap2(), glMapGrid()
107
109       Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed
110       under the SGI Free Software B License. For details, see
111       http://oss.sgi.com/projects/FreeB/.
112

AUTHORS

114       opengl.org
115
116
117
118opengl.org                        07/13/2018                   GLEVALPOINT(3G)
Impressum