This file is indexed.

/usr/share/doc/mathgl/mathgl_en/mathgl_en_84.html is in mathgl-doc-en 2.1.3.1-4ubuntu3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd">
<html>
<!-- This manual is for MathGL (version 2.1.2), a collection of classes and routines for scientific plotting. Please report any errors in this manual to mathgl.abalakin@gmail.org.

Copyright C 2008-2012 Alexey A. Balakin.

Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.2
or any later version published by the Free Software Foundation;
with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
Texts.  A copy of the license is included in the section entitled "GNU
Free Documentation License."


 -->
<!-- Created on December 22, 2013 by texi2html 1.82
texi2html was written by: 
            Lionel Cons <Lionel.Cons@cern.ch> (original author)
            Karl Berry  <karl@freefriends.org>
            Olaf Bachmann <obachman@mathematik.uni-kl.de>
            and many others.
Maintained by: Many creative people.
Send bugs and suggestions to <texi2html-bug@nongnu.org>
-->
<head>
<title>MathGL 2.1.2: B.2 MGLD format</title>

<meta name="description" content="MathGL 2.1.2: B.2 MGLD format">
<meta name="keywords" content="MathGL 2.1.2: B.2 MGLD format">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="texi2html 1.82">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.smallquotation {font-size: smaller}
pre.display {font-family: serif}
pre.format {font-family: serif}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: serif; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: serif; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.roman {font-family:serif; font-weight:normal;}
span.sansserif {font-family:sans-serif; font-weight:normal;}
ul.toc {list-style: none}
-->
</style>


</head>

<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">

<a name="MGLD-format"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="mathgl_en_83.html#Font-files" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="mathgl_en_85.html#JSON-format" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="mathgl_en_82.html#File-formats" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="mathgl_en_82.html#File-formats" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="mathgl_en_86.html#TeX_002dlike-symbols" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="mathgl_en.html#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="mathgl_en_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="mathgl_en_88.html#Index" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="mathgl_en_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<a name="MGLD-format-1"></a>
<h2 class="section">B.2 MGLD format</h2>

<p>MGLD is textual file, which contain all required information for drawing 3D image, i.e. it contain vertexes with colors and normales, primitives with all properties, textures, and glyph descriptions. MGLD file can be imported or viewed separately, without parsing data files itself.
</p>
<p>MGLD file start from string
</p><pre class="verbatim">MGLD npnts nprim ntxtr nglfs # optional description
</pre><p>which contain signature &lsquo;<samp>MGLD</samp>&rsquo; and number of points <var>npnts</var>, number of primitives <var>nprim</var>, number of textures <var>ntxtr</var>, number of glyph descriptions <var>nglfs</var>, and optional description. Empty strings and string with &lsquo;<samp>#</samp>&rsquo; are ignored.
</p>
<p>Next, file contain <var>npnts</var> strings with points coordinates and colors. The format of each string is
</p><pre class="verbatim">x y z c t ta u v w r g b a
</pre><p>Here <var>x</var>, <var>y</var>, <var>z</var> are coordinates, <var>c</var>, <var>t</var> are color indexes in texture, <var>ta</var> is normalized <var>t</var> according to current alpha setting, <var>u</var>, <var>v</var>, <var>w</var> are coordinates of normal vector (can be <code>NAN</code> if disabled), <var>r</var>, <var>g</var>, <var>b</var>, <var>a</var> are RGBA color values.
</p>
<p>Next, file contain <var>nprim</var> strings with properties of primitives. The format of each string is
</p><pre class="verbatim">type n1 n2 n3 n4 id s w p
</pre><p>Here <var>type</var> is kind of primitive (0 - mark, 1 - line, 2 - triangle, 3 - quadrangle, 4 - glyph), <var>n1</var>...<var>n4</var> is index of point for vertexes,  <var>id</var> is primitive identification number, <var>s</var> and <var>w</var> are size and width if applicable, <var>p</var> is scaling factor for glyphs.
</p>
<p>Next, file contain <var>ntxtr</var> strings with descriptions of textures. The format of each string is
</p><pre class="verbatim">smooth alpha colors
</pre><p>Here <var>smooth</var> set to enable smoothing between colors, <var>alpha</var> set to use half-transparent texture, <var>colors</var> contain color scheme itself as it described in <a href="mathgl_en_24.html#Color-scheme">Color scheme</a>.
</p>
<p>Finally, file contain <var>nglfs</var> entries with description of each glyph used in the figure. The format of entries are
</p><pre class="verbatim">nT nL
xA yA xB yB xC yC ...
xP yP ...
</pre><p>Here nT is the number of triangles; nL is the number of line vertexes; xA, yA, xB, yB, xC, yC are coordinates of triangles; and xP, yP, xQ, yQ are coordinates of lines. Line coordinate xP=0x3fff, yP=0x3fff denote line breaking.
</p>

<hr size="6">
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="mathgl_en_83.html#Font-files" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="mathgl_en_85.html#JSON-format" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="mathgl_en_82.html#File-formats" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="mathgl_en_82.html#File-formats" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="mathgl_en_86.html#TeX_002dlike-symbols" title="Next chapter"> &gt;&gt; </a>]</td>
</tr></table>
<p>
 <font size="-1">
  This document was generated by <em>Build Daemon user</em> on <em>December 22, 2013</em> using <a href="http://www.nongnu.org/texi2html/"><em>texi2html 1.82</em></a>.
 </font>
 <br>

</p>
</body>
</html>