1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN" "xhtml1-transitional.dtd">
2 <!-- saved from url=(0013)about:internet -->
3 <?xml-stylesheet type=
"text/xsl" href=
"mathml.xsl"?><html xmlns=
"http://www.w3.org/1999/xhtml" xmlns:
pref=
"http://www.w3.org/2002/Math/preference" pref:
renderer=
"mathplayer-dl"><head><meta http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8" /><title>glEvalPoint
</title><meta name=
"generator" content=
"DocBook XSL Stylesheets V1.73.2" /></head><body><div class=
"refentry" lang=
"en" xml:
lang=
"en"><a id=
"glEvalPoint"></a><div class=
"titlepage"></div><div class=
"refnamediv"><h2>Name
</h2><p>glEvalPoint — generate and evaluate a single point in a mesh
</p></div><div class=
"refsynopsisdiv"><h2>C Specification
</h2><div class=
"funcsynopsis"><table border=
"0" summary=
"Function synopsis" cellspacing=
"0" cellpadding=
"0"><tr><td><code class=
"funcdef">void
<b class=
"fsfunc">glEvalPoint1
</b>(
</code></td><td>GLint
</td><td><var class=
"pdparam">i
</var><code>)
</code>;
</td></tr></table></div><div class=
"funcsynopsis"><table border=
"0" summary=
"Function synopsis" cellspacing=
"0" cellpadding=
"0"><tr><td><code class=
"funcdef">void
<b class=
"fsfunc">glEvalPoint2
</b>(
</code></td><td>GLint
</td><td><var class=
"pdparam">i
</var>,
</td></tr><tr><td> </td><td>GLint
</td><td><var class=
"pdparam">j
</var><code>)
</code>;
</td></tr></table></div></div><div class=
"refsect1" lang=
"en" xml:
lang=
"en"><a id=
"parameters"></a><h2>Parameters
</h2><div class=
"variablelist"><dl><dt><span class=
"term"><em class=
"parameter"><code>i
</code></em></span></dt><dd><p>
4 Specifies the integer value for grid domain variable
5 <mml:math xmlns:
mml=
"http://www.w3.org/1998/Math/MathML" overflow=
"scroll"><mml:mi mathvariant=
"italic">i
</mml:mi></mml:math>.
6 </p></dd><dt><span class=
"term"><em class=
"parameter"><code>j
</code></em></span></dt><dd><p>
7 Specifies the integer value for grid domain variable
8 <mml:math xmlns:
mml=
"http://www.w3.org/1998/Math/MathML" overflow=
"scroll"><mml:mi mathvariant=
"italic">j
</mml:mi></mml:math>
9 (
<code class=
"function">glEvalPoint2
</code> only).
10 </p></dd></dl></div></div><div class=
"refsect1" lang=
"en" xml:
lang=
"en"><a id=
"description"></a><h2>Description
</h2><p>
11 <a class=
"citerefentry" href=
"glMapGrid.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glMapGrid
</span></span></a> and
<a class=
"citerefentry" href=
"glEvalMesh.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glEvalMesh
</span></span></a> are used in tandem to efficiently
12 generate and evaluate a series of evenly spaced map domain values.
13 <code class=
"function">glEvalPoint
</code> can be used to evaluate a single grid point in the same gridspace
14 that is traversed by
<a class=
"citerefentry" href=
"glEvalMesh.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glEvalMesh
</span></span></a>.
15 Calling
<code class=
"function">glEvalPoint1
</code> is equivalent to calling
16 </p><pre class=
"programlisting">
17 glEvalCoord1(
<mml:math xmlns:
mml=
"http://www.w3.org/1998/Math/MathML" overflow=
"scroll">
24 <mml:mi mathvariant=
"italic">u
</mml:mi>
28 <mml:mi mathvariant=
"italic">u
</mml:mi>
35 </p><div class=
"informalequation"><mml:math xmlns:
mml=
"http://www.w3.org/1998/Math/MathML" overflow=
"scroll">
40 <mml:mi mathvariant=
"italic">u
</mml:mi>
44 <mml:mfenced open=
"(" close=
")">
46 <mml:msub><mml:mi mathvariant=
"italic">u
</mml:mi>
50 <mml:msub><mml:mi mathvariant=
"italic">u
</mml:mi>
55 <mml:mi mathvariant=
"italic">n
</mml:mi>
61 <mml:math xmlns:
mml=
"http://www.w3.org/1998/Math/MathML" overflow=
"scroll"><mml:mi mathvariant=
"italic">n
</mml:mi></mml:math>,
62 <mml:math xmlns:
mml=
"http://www.w3.org/1998/Math/MathML" overflow=
"scroll">
64 <mml:msub><mml:mi mathvariant=
"italic">u
</mml:mi>
69 <mml:math xmlns:
mml=
"http://www.w3.org/1998/Math/MathML" overflow=
"scroll">
71 <mml:msub><mml:mi mathvariant=
"italic">u
</mml:mi>
75 are the arguments to the most recent
<a class=
"citerefentry" href=
"glMapGrid1.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glMapGrid1
</span></span></a> command.
76 The one absolute numeric requirement is that if
77 <mml:math xmlns:
mml=
"http://www.w3.org/1998/Math/MathML" overflow=
"scroll">
80 <mml:mi mathvariant=
"italic">i
</mml:mi>
82 <mml:mi mathvariant=
"italic">n
</mml:mi>
85 then the value computed from
86 <mml:math xmlns:
mml=
"http://www.w3.org/1998/Math/MathML" overflow=
"scroll">
90 <mml:mi mathvariant=
"italic">i
</mml:mi>
94 <mml:mi mathvariant=
"italic">u
</mml:mi>
98 <mml:msub><mml:mi mathvariant=
"italic">u
</mml:mi>
104 <mml:math xmlns:
mml=
"http://www.w3.org/1998/Math/MathML" overflow=
"scroll">
106 <mml:msub><mml:mi mathvariant=
"italic">u
</mml:mi>
111 In the two-dimensional case,
<code class=
"function">glEvalPoint2
</code>, let
113 </p><div class=
"informalequation"><mml:math xmlns:
mml=
"http://www.w3.org/1998/Math/MathML" overflow=
"scroll">
118 <mml:mi mathvariant=
"italic">u
</mml:mi>
122 <mml:mfenced open=
"(" close=
")">
124 <mml:msub><mml:mi mathvariant=
"italic">u
</mml:mi>
128 <mml:msub><mml:mi mathvariant=
"italic">u
</mml:mi>
133 <mml:mi mathvariant=
"italic">n
</mml:mi>
138 </p><div class=
"informalequation"><mml:math xmlns:
mml=
"http://www.w3.org/1998/Math/MathML" overflow=
"scroll">
143 <mml:mi mathvariant=
"italic">v
</mml:mi>
147 <mml:mfenced open=
"(" close=
")">
149 <mml:msub><mml:mi mathvariant=
"italic">v
</mml:mi>
153 <mml:msub><mml:mi mathvariant=
"italic">v
</mml:mi>
158 <mml:mi mathvariant=
"italic">m
</mml:mi>
165 <mml:math xmlns:
mml=
"http://www.w3.org/1998/Math/MathML" overflow=
"scroll"><mml:mi mathvariant=
"italic">n
</mml:mi></mml:math>,
166 <mml:math xmlns:
mml=
"http://www.w3.org/1998/Math/MathML" overflow=
"scroll">
168 <mml:msub><mml:mi mathvariant=
"italic">u
</mml:mi>
172 <mml:math xmlns:
mml=
"http://www.w3.org/1998/Math/MathML" overflow=
"scroll">
174 <mml:msub><mml:mi mathvariant=
"italic">u
</mml:mi>
178 <mml:math xmlns:
mml=
"http://www.w3.org/1998/Math/MathML" overflow=
"scroll"><mml:mi mathvariant=
"italic">m
</mml:mi></mml:math>,
179 <mml:math xmlns:
mml=
"http://www.w3.org/1998/Math/MathML" overflow=
"scroll">
181 <mml:msub><mml:mi mathvariant=
"italic">v
</mml:mi>
186 <mml:math xmlns:
mml=
"http://www.w3.org/1998/Math/MathML" overflow=
"scroll">
188 <mml:msub><mml:mi mathvariant=
"italic">v
</mml:mi>
192 are the arguments to the most recent
<a class=
"citerefentry" href=
"glMapGrid2.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glMapGrid2
</span></span></a> command.
193 Then the
<code class=
"function">glEvalPoint2
</code> command is equivalent to calling
194 </p><pre class=
"programlisting">
195 glEvalCoord2(
<mml:math xmlns:
mml=
"http://www.w3.org/1998/Math/MathML" overflow=
"scroll">
202 <mml:mi mathvariant=
"italic">u
</mml:mi>
206 <mml:mi mathvariant=
"italic">u
</mml:mi>
215 <mml:mi mathvariant=
"italic">v
</mml:mi>
220 <mml:mi mathvariant=
"italic">v
</mml:mi>
226 The only absolute numeric requirements are that if
227 <mml:math xmlns:
mml=
"http://www.w3.org/1998/Math/MathML" overflow=
"scroll">
230 <mml:mi mathvariant=
"italic">i
</mml:mi>
232 <mml:mi mathvariant=
"italic">n
</mml:mi>
235 then the value computed from
236 <mml:math xmlns:
mml=
"http://www.w3.org/1998/Math/MathML" overflow=
"scroll">
240 <mml:mi mathvariant=
"italic">i
</mml:mi>
244 <mml:mi mathvariant=
"italic">u
</mml:mi>
248 <mml:msub><mml:mi mathvariant=
"italic">u
</mml:mi>
254 <mml:math xmlns:
mml=
"http://www.w3.org/1998/Math/MathML" overflow=
"scroll">
256 <mml:msub><mml:mi mathvariant=
"italic">u
</mml:mi>
261 <mml:math xmlns:
mml=
"http://www.w3.org/1998/Math/MathML" overflow=
"scroll">
264 <mml:mi mathvariant=
"italic">j
</mml:mi>
266 <mml:mi mathvariant=
"italic">m
</mml:mi>
269 then the value computed from
270 <mml:math xmlns:
mml=
"http://www.w3.org/1998/Math/MathML" overflow=
"scroll">
274 <mml:mi mathvariant=
"italic">j
</mml:mi>
278 <mml:mi mathvariant=
"italic">v
</mml:mi>
282 <mml:msub><mml:mi mathvariant=
"italic">v
</mml:mi>
288 <mml:math xmlns:
mml=
"http://www.w3.org/1998/Math/MathML" overflow=
"scroll">
290 <mml:msub><mml:mi mathvariant=
"italic">v
</mml:mi>
294 </p></div><div class=
"refsect1" lang=
"en" xml:
lang=
"en"><a id=
"associatedgets"></a><h2>Associated Gets
</h2><p>
295 <a class=
"citerefentry" href=
"glGet.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glGet
</span></span></a> with argument
<code class=
"constant">GL_MAP1_GRID_DOMAIN
</code>
297 <a class=
"citerefentry" href=
"glGet.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glGet
</span></span></a> with argument
<code class=
"constant">GL_MAP2_GRID_DOMAIN
</code>
299 <a class=
"citerefentry" href=
"glGet.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glGet
</span></span></a> with argument
<code class=
"constant">GL_MAP1_GRID_SEGMENTS
</code>
301 <a class=
"citerefentry" href=
"glGet.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glGet
</span></span></a> with argument
<code class=
"constant">GL_MAP2_GRID_SEGMENTS
</code>
302 </p></div><div class=
"refsect1" lang=
"en" xml:
lang=
"en"><a id=
"seealso"></a><h2>See Also
</h2><p>
303 <a class=
"citerefentry" href=
"glEvalCoord.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glEvalCoord
</span></span></a>,
304 <a class=
"citerefentry" href=
"glEvalMesh.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glEvalMesh
</span></span></a>,
305 <a class=
"citerefentry" href=
"glMap1.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glMap1
</span></span></a>,
306 <a class=
"citerefentry" href=
"glMap2.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glMap2
</span></span></a>,
307 <a class=
"citerefentry" href=
"glMapGrid.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glMapGrid
</span></span></a>
308 </p></div><div class=
"refsect1" lang=
"en" xml:
lang=
"en"><a id=
"Copyright"></a><h2>Copyright
</h2><p>
309 Copyright
<span class=
"trademark"></span>©
1991-
2006
310 Silicon Graphics, Inc. This document is licensed under the SGI
311 Free Software B License. For details, see
312 <a class=
"ulink" href=
"http://oss.sgi.com/projects/FreeB/" target=
"_top">http://oss.sgi.com/projects/FreeB/
</a>.
313 </p></div></div></body></html>