File: glEvalPoint.3G.xml

package info (click to toggle)
pyopengl 2.0.1.08-5.1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 19,484 kB
  • ctags: 9,036
  • sloc: pascal: 64,950; xml: 28,088; ansic: 20,696; python: 19,761; tcl: 668; makefile: 240; sh: 25
file content (243 lines) | stat: -rw-r--r-- 11,804 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd">
<html
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:mml="http://www.w3.org/1998/Math/MathML"
><head><title>glEvalPoint</title><link rel="stylesheet" href="style.css" type="text/css"/><meta name="generator" content="DocBook XSL Stylesheets V1.59.1"/><link rel="home" href="index.xml" title="PyOpenGL 2.0.1.07 Man Pages"/><link rel="up" href="reference-GL.xml" title="GL"/><link rel="previous" href="glEvalMesh.3G.xml" title="glEvalMesh"/><link rel="next" href="glFeedbackBuffer.3G.xml" title="glFeedbackBuffer"/></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">glEvalPoint</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="glEvalMesh.3G.xml">Prev</a></td><th width="60%" align="center">GL</th><td width="20%" align="right"><a accesskey="n" href="glFeedbackBuffer.3G.xml">Next</a></td></tr></table><hr/></div><div class="refentry" lang="en"><a name="glEvalPoint.3G"/><div class="titlepage"/><div class="refnamediv"><a name="glEvalPoint.3G-name"/><h2>Name</h2><p>glEvalPoint1, glEvalPoint2 &#8212; generate and evaluate a single point in a mesh</p></div><div class="refsynopsisdiv"><a name="glEvalPoint.3G-c_spec"/><h2>C Specification</h2><table class="funcprototype" border="0" cellpadding="0" cellspacing="0"><tr><td valign="top"><code>void<tt>glEvalPoint1</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>GLint<i><tt>i</tt></i>);</code></td></tr><tr><td valign="top"><code>void<tt>glEvalPoint2</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>GLint<i><tt>i</tt></i>, GLint<i><tt>j</tt></i>);</code></td></tr></table></div><div class="refsynopsisdiv"><a name="glEvalPoint.3G-python_spec"/><h2>Python Specification</h2><table class="funcprototype" border="0" cellpadding="0" cellspacing="0"><tr><td valign="top"><code><tt>glEvalPoint1</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>i</tt></i>) &#8594;<tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glEvalPoint2</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>i</tt></i>, <i><tt>j</tt></i>) &#8594;<tt>None</tt></code></td></tr></table></div><div class="refsect1" lang="en"><a name="glEvalPoint.3G-parameters"/><h2>Parameters</h2><div class="variablelist"><dl><dt><span class="term"><i><tt>i</tt></i></span></dt><dd>
						Specifies the integer value for grid domain variable <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
								<mml:mi>i</mml:mi>
							</mml:math>.
					</dd><dt><span class="term"><i><tt>j</tt></i></span></dt><dd>
						Specifies the integer value for grid domain variable <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
								<mml:mi>j</mml:mi>
							</mml:math> (<tt>glEvalPoint2</tt> only).
					</dd></dl></div></div><div class="refsect1" lang="en"><a name="glEvalPoint.3G-description"/><h2>Description</h2><p>
			<tt>glMapGrid</tt> and <tt>glEvalMesh</tt> are used in
			tandem to efficiently generate and evaluate a series of evenly spaced map domain values. <tt>glEvalPoint</tt> can be used to evaluate a single grid point in the same gridspace that is
			traversed by <tt>glEvalMesh</tt>. Calling <tt>glEvalPoint1</tt> is
			equivalent to calling
		</p><p>
			glEvalCoord1( i<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
					<mml:mrow>
						<mml:mo></mml:mo>
						<mml:mi>&#916;</mml:mi>
						<mml:mi>u</mml:mi>
						<mml:mo>+</mml:mo>
						<mml:msub>
							<mml:mi>u</mml:mi>
							<mml:mn>1</mml:mn>
						</mml:msub>
					</mml:mrow>
				</mml:math> );
		</p><p>
			where <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
					<mml:mrow>
						<mml:mi>&#916;</mml:mi>
						<mml:mi>u</mml:mi>
						<mml:mo>=</mml:mo>
						<mml:mo>(</mml:mo>
						<mml:msub>
							<mml:mi>u</mml:mi>
							<mml:mn>2</mml:mn>
						</mml:msub>
						<mml:mo>-</mml:mo>
						<mml:msub>
							<mml:mi>u</mml:mi>
							<mml:mn>1</mml:mn>
						</mml:msub>
						<mml:mo>)</mml:mo>
						<mml:mo>/</mml:mo>
						<mml:mi>n</mml:mi>
					</mml:mrow>
				</mml:math>
		</p><p>
			and <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
					<mml:mi>n</mml:mi>
				</mml:math>, <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
					<mml:msub>
						<mml:mi>u</mml:mi>
						<mml:mn>1</mml:mn>
					</mml:msub>
				</mml:math>, and <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
					<mml:msub>
						<mml:mi>u</mml:mi>
						<mml:mn>2</mml:mn>
					</mml:msub>
				</mml:math> are the arguments to the most recent <tt>glMapGrid1</tt> command. The
			one absolute numeric requirement is that if <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
					<mml:mrow>
						<mml:mi>i</mml:mi>
						<mml:mo>=</mml:mo>
						<mml:mi>n</mml:mi>
					</mml:mrow>
				</mml:math>, then the value computed from <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
					<mml:mrow>
						<mml:mi>i</mml:mi>
						<mml:mo></mml:mo>
						<mml:mi>&#916;</mml:mi>
						<mml:mi>u</mml:mi>
						<mml:mo>+</mml:mo>
						<mml:msub>
							<mml:mi>u</mml:mi>
							<mml:mn>1</mml:mn>
						</mml:msub>
					</mml:mrow>
				</mml:math> is exactly <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
					<mml:msub>
						<mml:mi>u</mml:mi>
						<mml:mn>2</mml:mn>
					</mml:msub>
				</mml:math>.
		</p><p>
			In the two-dimensional case, <tt>glEvalPoint2</tt>, let
		</p><p>
			<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
					<mml:mrow>
						<mml:mi>&#916;</mml:mi>
						<mml:mi>u</mml:mi>
						<mml:mo>=</mml:mo>
						<mml:mo>(</mml:mo>
						<mml:msub>
							<mml:mi>u</mml:mi>
							<mml:mn>2</mml:mn>
						</mml:msub>
						<mml:mo>-</mml:mo>
						<mml:msub>
							<mml:mi>u</mml:mi>
							<mml:mn>1</mml:mn>
						</mml:msub>
						<mml:mo>)</mml:mo>
						<mml:mo>/</mml:mo>
						<mml:mi>n</mml:mi>
					</mml:mrow>
				</mml:math> <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
					<mml:mrow>
						<mml:mi>&#916;</mml:mi>
						<mml:mi>v</mml:mi>
						<mml:mo>=</mml:mo>
						<mml:mo>(</mml:mo>
						<mml:msub>
							<mml:mi>v</mml:mi>
							<mml:mn>2</mml:mn>
						</mml:msub>
						<mml:mo>-</mml:mo>
						<mml:msub>
							<mml:mi>v</mml:mi>
							<mml:mn>1</mml:mn>
						</mml:msub>
						<mml:mo>)</mml:mo>
						<mml:mo>/</mml:mo>
						<mml:mi>m</mml:mi>
					</mml:mrow>
				</mml:math>
		</p><p>
			where <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
					<mml:mi>n</mml:mi>
				</mml:math>, <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
					<mml:msub>
						<mml:mi>u</mml:mi>
						<mml:mn>1</mml:mn>
					</mml:msub>
				</mml:math>, <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
					<mml:msub>
						<mml:mi>u</mml:mi>
						<mml:mn>2</mml:mn>
					</mml:msub>
				</mml:math>, <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
					<mml:mi>m</mml:mi>
				</mml:math>, <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
					<mml:msub>
						<mml:mi>v</mml:mi>
						<mml:mn>1</mml:mn>
					</mml:msub>
				</mml:math>, and <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
					<mml:msub>
						<mml:mi>v</mml:mi>
						<mml:mn>2</mml:mn>
					</mml:msub>
				</mml:math> are the arguments to the most recent <tt>glMapGrid2</tt> command.
			Then the <tt>glEvalPoint2</tt> command is equivalent to calling
		</p><p>
			glEvalCoord2( i<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
					<mml:mrow>
						<mml:mo></mml:mo>
						<mml:mi>&#916;</mml:mi>
						<mml:mi>u</mml:mi>
						<mml:mo>+</mml:mo>
						<mml:msub>
							<mml:mi>u</mml:mi>
							<mml:mn>1</mml:mn>
						</mml:msub>
					</mml:mrow>
				</mml:math>, j<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
					<mml:mrow>
						<mml:mo></mml:mo>
						<mml:mi>&#916;</mml:mi>
						<mml:mi>v</mml:mi>
						<mml:mo>+</mml:mo>
						<mml:msub>
							<mml:mi>v</mml:mi>
							<mml:mn>1</mml:mn>
						</mml:msub>
					</mml:mrow>
				</mml:math> );
		</p><p>
			The only absolute numeric requirements are that if <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
					<mml:mrow>
						<mml:mi>i</mml:mi>
						<mml:mo>=</mml:mo>
						<mml:mi>n</mml:mi>
					</mml:mrow>
				</mml:math>, then the value computed from <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
					<mml:mrow>
						<mml:mi>i</mml:mi>
						<mml:mo></mml:mo>
						<mml:mi>&#916;</mml:mi>
						<mml:mi>u</mml:mi>
						<mml:mo>+</mml:mo>
						<mml:msub>
							<mml:mi>u</mml:mi>
							<mml:mn>1</mml:mn>
						</mml:msub>
					</mml:mrow>
				</mml:math> is exactly <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
					<mml:msub>
						<mml:mi>u</mml:mi>
						<mml:mn>2</mml:mn>
					</mml:msub>
				</mml:math>, and if <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
					<mml:mrow>
						<mml:mi>j</mml:mi>
						<mml:mo>=</mml:mo>
						<mml:mi>m</mml:mi>
					</mml:mrow>
				</mml:math>, then the value computed from <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
					<mml:mrow>
						<mml:mi>i</mml:mi>
						<mml:mo></mml:mo>
						<mml:mi>&#916;</mml:mi>
						<mml:mi>v</mml:mi>
						<mml:mo>+</mml:mo>
						<mml:msub>
							<mml:mi>v</mml:mi>
							<mml:mn>1</mml:mn>
						</mml:msub>
					</mml:mrow>
				</mml:math> is exactly <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
					<mml:msub>
						<mml:mi>v</mml:mi>
						<mml:mn>2</mml:mn>
					</mml:msub>
				</mml:math>.
		</p></div><div class="refsect1" lang="en"><a name="glEvalPoint.3G-associated_gets"/><h2>Associated Gets</h2><p>
			<tt>glGet</tt> with argument <tt>GL_MAP1_GRID_DOMAIN</tt>
		</p><p>
			<tt>glGet</tt> with argument <tt>GL_MAP2_GRID_DOMAIN</tt>
		</p><p>
			<tt>glGet</tt> with argument <tt>GL_MAP1_GRID_SEGMENTS</tt>
		</p><p>
			<tt>glGet</tt> with argument <tt>GL_MAP2_GRID_SEGMENTS</tt>
		</p></div><div class="refsect1" lang="en"><a name="glEvalPoint.3G-see_also"/><h2>See Also</h2><p>
			<span class="simplelist"><a href="glEvalCoord.3G.xml">glEvalCoord</a>, <a href="glEvalMesh.3G.xml">glEvalMesh</a>, <a href="glMap1.3G.xml">glMap1</a>, <a href="glMap2.3G.xml">glMap2</a>, <a href="glMapGrid.3G.xml">glMapGrid</a></span>
		</p></div></div><div class="navfooter"><hr/><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="glEvalMesh.3G.xml">Prev</a></td><td width="20%" align="center"><a accesskey="u" href="reference-GL.xml">Up</a></td><td width="40%" align="right"><a accesskey="n" href="glFeedbackBuffer.3G.xml">Next</a></td></tr><tr><td width="40%" align="left" valign="top">glEvalMesh</td><td width="20%" align="center"><a accesskey="h" href="index.xml">Home</a></td><td width="40%" align="right" valign="top">glFeedbackBuffer</td></tr></table></div></body></html>