| 1 |
<html lang="en"> |
| 2 |
<head> |
| 3 |
<title>ND-Vertices - Geomview Manual</title> |
| 4 |
<meta http-equiv="Content-Type" content="text/html"> |
| 5 |
<meta name="description" content="Geomview Manual"> |
| 6 |
<meta name="generator" content="makeinfo 4.13"> |
| 7 |
<link title="Top" rel="start" href="index.html#Top"> |
| 8 |
<link rel="up" href="Conventions.html#Conventions" title="Conventions"> |
| 9 |
<link rel="prev" href="Vertices.html#Vertices" title="Vertices"> |
| 10 |
<link rel="next" href="Surface-normal-directions.html#Surface-normal-directions" title="Surface normal directions"> |
| 11 |
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage"> |
| 12 |
<meta http-equiv="Content-Style-Type" content="text/css"> |
| 13 |
<style type="text/css"><!-- |
| 14 |
pre.display { font-family:inherit } |
| 15 |
pre.format { font-family:inherit } |
| 16 |
pre.smalldisplay { font-family:inherit; font-size:smaller } |
| 17 |
pre.smallformat { font-family:inherit; font-size:smaller } |
| 18 |
pre.smallexample { font-size:smaller } |
| 19 |
pre.smalllisp { font-size:smaller } |
| 20 |
span.sc { font-variant:small-caps } |
| 21 |
span.roman { font-family:serif; font-weight:normal; } |
| 22 |
span.sansserif { font-family:sans-serif; font-weight:normal; } |
| 23 |
--></style> |
| 24 |
</head> |
| 25 |
<body> |
| 26 |
<div class="node"> |
| 27 |
<a name="ND-Vertices"></a> |
| 28 |
<a name="ND_002dVertices"></a> |
| 29 |
<p> |
| 30 |
Next: <a rel="next" accesskey="n" href="Surface-normal-directions.html#Surface-normal-directions">Surface normal directions</a>, |
| 31 |
Previous: <a rel="previous" accesskey="p" href="Vertices.html#Vertices">Vertices</a>, |
| 32 |
Up: <a rel="up" accesskey="u" href="Conventions.html#Conventions">Conventions</a> |
| 33 |
<hr> |
| 34 |
</div> |
| 35 |
|
| 36 |
<h4 class="subsection">4.1.4 <var>N</var>-dimensional Vertices</h4> |
| 37 |
|
| 38 |
<p>Several objects share a common style of representing vertices with |
| 39 |
optional per-vertex surface-normal and color. All vertices within an |
| 40 |
object have the same format, specified by the header key word. |
| 41 |
|
| 42 |
<p>All data for a vertex is grouped together (as opposed to e.g. giving |
| 43 |
coordinates for all vertices, then colors for all vertices, and so on). |
| 44 |
|
| 45 |
<p>The syntax for <var>N</var>-dimensional vertices (<var>N</var> > 3) is |
| 46 |
|
| 47 |
<dl> |
| 48 |
<dt>‘<samp><var>x[1]</var> <var>x[2]</var> <var>x[3]</var> <var>x[4]</var><span class="samp"> ...</span></samp>’<dd>(<var>N</var> floating-point vertex coordinates) or |
| 49 |
<br><dt>‘<samp><var>x[0]</var> <var>x[1]</var> <var>x[2]</var> <var>x[3]</var> <var>x[4]</var><span class="samp"> ...</span></samp>’<dd>(<var>(N+1)</var> floating-point vertex coordinates, if the <code>4</code> modifier |
| 50 |
has been specified in the object's header line) |
| 51 |
</dl> |
| 52 |
|
| 53 |
<p>Note, however, that <var>N</var>-dimensional objects internally always have |
| 54 |
<var>(N+1)</var>-dimensional points; the first component <var>x[0]</var> – if |
| 55 |
present in the object file – is used as homogeneous divisor. This is |
| 56 |
different from the ordinary 3D case where the <code>4</code> modifier |
| 57 |
generates a 4D object where the homogeneous component implicitly is set |
| 58 |
to 1. |
| 59 |
|
| 60 |
<p>Color components usually can be specified like for 3D vertices, |
| 61 |
see <a href="Vertices.html#Vertices">Vertices</a>, while specifying normals does not make sense. |
| 62 |
|
| 63 |
|
| 64 |
</body></html> |
| 65 |
|