This file is indexed.

/usr/share/doc/python-collada/html/reference/generated/collada.triangleset.TriangleSet.html is in python-collada 0.4-2.

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
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
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>collada.triangleset.TriangleSet &mdash; pycollada 0.4 documentation</title>
    
    <link rel="stylesheet" href="../../_static/sphinxdoc.css" type="text/css" />
    <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '../../',
        VERSION:     '0.4',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="../../_static/jquery.js"></script>
    <script type="text/javascript" src="../../_static/underscore.js"></script>
    <script type="text/javascript" src="../../_static/doctools.js"></script>
    <link rel="top" title="pycollada 0.4 documentation" href="../../index.html" />
    <link rel="up" title="API Reference" href="../index.html" />
    <link rel="next" title="collada.util" href="collada.util.html" />
    <link rel="prev" title="collada.triangleset.Triangle" href="collada.triangleset.Triangle.html" /> 
  </head>
  <body>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../../genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="../../py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="collada.util.html" title="collada.util"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="collada.triangleset.Triangle.html" title="collada.triangleset.Triangle"
             accesskey="P">previous</a> |</li>
        <li><a href="../../index.html">pycollada 0.4 documentation</a> &raquo;</li>
          <li><a href="../index.html" accesskey="U">API Reference</a> &raquo;</li> 
      </ul>
    </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
  <h4>Previous topic</h4>
  <p class="topless"><a href="collada.triangleset.Triangle.html"
                        title="previous chapter">collada.triangleset.Triangle</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="collada.util.html"
                        title="next chapter">collada.util</a></p>
  <h3>This Page</h3>
  <ul class="this-page-menu">
    <li><a href="../../_sources/reference/generated/collada.triangleset.TriangleSet.txt"
           rel="nofollow">Show Source</a></li>
  </ul>
<div id="searchbox" style="display: none">
  <h3>Quick search</h3>
    <form class="search" action="../../search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="Go" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    <p class="searchtip" style="font-size: 90%">
    Enter search terms or a module, class or function name.
    </p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="collada-triangleset-triangleset">
<h1>collada.triangleset.TriangleSet<a class="headerlink" href="#collada-triangleset-triangleset" title="Permalink to this headline"></a></h1>
<dl class="class">
<dt id="collada.triangleset.TriangleSet">
<em class="property">class </em><tt class="descclassname">collada.triangleset.</tt><tt class="descname">TriangleSet</tt><big>(</big><em>sources</em>, <em>material</em>, <em>index</em>, <em>xmlnode=None</em><big>)</big><a class="headerlink" href="#collada.triangleset.TriangleSet" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <a class="reference internal" href="collada.primitive.Primitive.html#collada.primitive.Primitive" title="collada.primitive.Primitive"><tt class="xref py py-class docutils literal"><span class="pre">collada.primitive.Primitive</span></tt></a></p>
<p>Class containing the data COLLADA puts in a &lt;triangles&gt; tag, a collection of
triangles.</p>
<ul class="simple">
<li>The TriangleSet object is read-only. To modify a TriangleSet, create a new
instance using <a class="reference internal" href="collada.geometry.Geometry.html#collada.geometry.Geometry.createTriangleSet" title="collada.geometry.Geometry.createTriangleSet"><tt class="xref py py-meth docutils literal"><span class="pre">collada.geometry.Geometry.createTriangleSet()</span></tt></a>.</li>
<li>If <tt class="docutils literal"><span class="pre">T</span></tt> is an instance of <a class="reference internal" href="#collada.triangleset.TriangleSet" title="collada.triangleset.TriangleSet"><tt class="xref py py-class docutils literal"><span class="pre">collada.triangleset.TriangleSet</span></tt></a>, then <tt class="docutils literal"><span class="pre">len(T)</span></tt>
returns the number of triangles in the set. <tt class="docutils literal"><span class="pre">T[i]</span></tt> returns the i<sup>th</sup>
triangle in the set.</li>
</ul>
<p class="graphviz">
digraph inheritanced10274bdba {
rankdir=LR;
size=&quot;8.0, 12.0&quot;;
  &quot;DaeObject&quot; [style=&quot;setlinewidth(0.5)&quot;,URL=&quot;collada.common.DaeObject.html#collada.common.DaeObject&quot;,fontname=&quot;Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans&quot;,tooltip=&quot;This class is the abstract interface to all collada objects.&quot;,height=0.25,shape=box,fontsize=10];
  &quot;Polygons&quot; [style=&quot;setlinewidth(0.5)&quot;,URL=&quot;collada.polygons.Polygons.html#collada.polygons.Polygons&quot;,fontname=&quot;Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans&quot;,tooltip=&quot;Class containing the data COLLADA puts in a &lt;polygons&gt; tag, a collection of&quot;,height=0.25,shape=box,fontsize=10];
  &quot;Polylist&quot; -&gt; &quot;Polygons&quot; [arrowsize=0.5,style=&quot;setlinewidth(0.5)&quot;];
  &quot;Primitive&quot; [style=&quot;setlinewidth(0.5)&quot;,URL=&quot;collada.primitive.Primitive.html#collada.primitive.Primitive&quot;,fontname=&quot;Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans&quot;,tooltip=&quot;Base class for all primitive sets like TriangleSet, LineSet, Polylist, etc.&quot;,height=0.25,shape=box,fontsize=10];
  &quot;DaeObject&quot; -&gt; &quot;Primitive&quot; [arrowsize=0.5,style=&quot;setlinewidth(0.5)&quot;];
  &quot;TriangleSet&quot; [style=&quot;setlinewidth(0.5)&quot;,URL=&quot;#collada.triangleset.TriangleSet&quot;,fontname=&quot;Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans&quot;,tooltip=&quot;Class containing the data COLLADA puts in a &lt;triangles&gt; tag, a collection of&quot;,height=0.25,shape=box,fontsize=10];
  &quot;Primitive&quot; -&gt; &quot;TriangleSet&quot; [arrowsize=0.5,style=&quot;setlinewidth(0.5)&quot;];
  &quot;LineSet&quot; [style=&quot;setlinewidth(0.5)&quot;,URL=&quot;collada.lineset.LineSet.html#collada.lineset.LineSet&quot;,fontname=&quot;Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans&quot;,tooltip=&quot;Class containing the data COLLADA puts in a &lt;lines&gt; tag, a collection of&quot;,height=0.25,shape=box,fontsize=10];
  &quot;Primitive&quot; -&gt; &quot;LineSet&quot; [arrowsize=0.5,style=&quot;setlinewidth(0.5)&quot;];
  &quot;Polylist&quot; [style=&quot;setlinewidth(0.5)&quot;,URL=&quot;collada.polylist.Polylist.html#collada.polylist.Polylist&quot;,fontname=&quot;Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans&quot;,tooltip=&quot;Class containing the data COLLADA puts in a &lt;polylist&gt; tag, a collection of&quot;,height=0.25,shape=box,fontsize=10];
  &quot;Primitive&quot; -&gt; &quot;Polylist&quot; [arrowsize=0.5,style=&quot;setlinewidth(0.5)&quot;];
}
</p>
<dl class="method">
<dt id="collada.triangleset.TriangleSet.__init__">
<tt class="descname">__init__</tt><big>(</big><em>sources</em>, <em>material</em>, <em>index</em>, <em>xmlnode=None</em><big>)</big><a class="headerlink" href="#collada.triangleset.TriangleSet.__init__" title="Permalink to this definition"></a></dt>
<dd><p>A TriangleSet should not be created manually. Instead, call the
<a class="reference internal" href="collada.geometry.Geometry.html#collada.geometry.Geometry.createTriangleSet" title="collada.geometry.Geometry.createTriangleSet"><tt class="xref py py-meth docutils literal"><span class="pre">collada.geometry.Geometry.createTriangleSet()</span></tt></a> method after
creating a geometry instance.</p>
</dd></dl>

<p class="rubric">Methods</p>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%" />
<col width="90%" />
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><a class="reference internal" href="#collada.triangleset.TriangleSet.__init__" title="collada.triangleset.TriangleSet.__init__"><tt class="xref py py-obj docutils literal"><span class="pre">__init__</span></tt></a>(sources,&nbsp;material,&nbsp;index[,&nbsp;xmlnode])</td>
<td>A TriangleSet should not be created manually. Instead, call the</td>
</tr>
<tr class="row-even"><td><a class="reference internal" href="#collada.triangleset.TriangleSet.bind" title="collada.triangleset.TriangleSet.bind"><tt class="xref py py-obj docutils literal"><span class="pre">bind</span></tt></a>(matrix,&nbsp;materialnodebysymbol)</td>
<td>Create a bound triangle set from this triangle set, transform and material mapping</td>
</tr>
<tr class="row-odd"><td><tt class="xref py py-obj docutils literal"><span class="pre">load</span></tt>(collada,&nbsp;localscope,&nbsp;node)</td>
<td></td>
</tr>
<tr class="row-even"><td><tt class="xref py py-obj docutils literal"><span class="pre">save</span></tt>()</td>
<td></td>
</tr>
</tbody>
</table>
<p class="rubric">Attributes</p>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%" />
<col width="90%" />
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><a class="reference internal" href="#collada.triangleset.TriangleSet.normal" title="collada.triangleset.TriangleSet.normal"><tt class="xref py py-obj docutils literal"><span class="pre">normal</span></tt></a></td>
<td>Read-only numpy.array of size Nx3 where N is the number of normal values in the</td>
</tr>
<tr class="row-even"><td><a class="reference internal" href="#collada.triangleset.TriangleSet.normal_index" title="collada.triangleset.TriangleSet.normal_index"><tt class="xref py py-obj docutils literal"><span class="pre">normal_index</span></tt></a></td>
<td>Read-only numpy.array of size Nx3 where N is the number of vertices in the primitive.</td>
</tr>
<tr class="row-odd"><td><a class="reference internal" href="#collada.triangleset.TriangleSet.texcoord_indexset" title="collada.triangleset.TriangleSet.texcoord_indexset"><tt class="xref py py-obj docutils literal"><span class="pre">texcoord_indexset</span></tt></a></td>
<td>Read-only tuple of texture coordinate index arrays.</td>
</tr>
<tr class="row-even"><td><a class="reference internal" href="#collada.triangleset.TriangleSet.texcoordset" title="collada.triangleset.TriangleSet.texcoordset"><tt class="xref py py-obj docutils literal"><span class="pre">texcoordset</span></tt></a></td>
<td>Read-only tuple of texture coordinate arrays.</td>
</tr>
<tr class="row-odd"><td><a class="reference internal" href="#collada.triangleset.TriangleSet.vertex" title="collada.triangleset.TriangleSet.vertex"><tt class="xref py py-obj docutils literal"><span class="pre">vertex</span></tt></a></td>
<td>Read-only numpy.array of size Nx3 where N is the number of vertex points in the</td>
</tr>
<tr class="row-even"><td><a class="reference internal" href="#collada.triangleset.TriangleSet.vertex_index" title="collada.triangleset.TriangleSet.vertex_index"><tt class="xref py py-obj docutils literal"><span class="pre">vertex_index</span></tt></a></td>
<td>Read-only numpy.array of size Nx3 where N is the number of vertices in the primitive.</td>
</tr>
</tbody>
</table>
<dl class="method">
<dt id="collada.triangleset.TriangleSet.bind">
<tt class="descname">bind</tt><big>(</big><em>matrix</em>, <em>materialnodebysymbol</em><big>)</big><a class="headerlink" href="#collada.triangleset.TriangleSet.bind" title="Permalink to this definition"></a></dt>
<dd><p>Create a bound triangle set from this triangle set, transform and material mapping</p>
</dd></dl>

<dl class="method">
<dt id="collada.triangleset.TriangleSet.generateNormals">
<tt class="descname">generateNormals</tt><big>(</big><big>)</big><a class="headerlink" href="#collada.triangleset.TriangleSet.generateNormals" title="Permalink to this definition"></a></dt>
<dd><p>If <tt class="xref py py-attr docutils literal"><span class="pre">normals</span></tt> is <cite>None</cite> or you wish for normals to be
recomputed, call this method to recompute them.</p>
</dd></dl>

<dl class="method">
<dt id="collada.triangleset.TriangleSet.generateTexTangentsAndBinormals">
<tt class="descname">generateTexTangentsAndBinormals</tt><big>(</big><big>)</big><a class="headerlink" href="#collada.triangleset.TriangleSet.generateTexTangentsAndBinormals" title="Permalink to this definition"></a></dt>
<dd><p>If there are no texture tangents, this method will compute them.
Texture coordinates must exist and it uses the first texture coordinate set.</p>
</dd></dl>

<dl class="method">
<dt id="collada.triangleset.TriangleSet.getInputList">
<tt class="descname">getInputList</tt><big>(</big><big>)</big><a class="headerlink" href="#collada.triangleset.TriangleSet.getInputList" title="Permalink to this definition"></a></dt>
<dd><p>Gets a <a class="reference internal" href="collada.source.InputList.html#collada.source.InputList" title="collada.source.InputList"><tt class="xref py py-class docutils literal"><span class="pre">collada.source.InputList</span></tt></a> representing the inputs from a primitive</p>
</dd></dl>

<dl class="attribute">
<dt id="collada.triangleset.TriangleSet.normal">
<tt class="descname">normal</tt><a class="headerlink" href="#collada.triangleset.TriangleSet.normal" title="Permalink to this definition"></a></dt>
<dd><p>Read-only numpy.array of size Nx3 where N is the number of normal values in the
primitive&#8217;s normal source array.</p>
</dd></dl>

<dl class="attribute">
<dt id="collada.triangleset.TriangleSet.normal_index">
<tt class="descname">normal_index</tt><a class="headerlink" href="#collada.triangleset.TriangleSet.normal_index" title="Permalink to this definition"></a></dt>
<dd><p>Read-only numpy.array of size Nx3 where N is the number of vertices in the primitive.
To get the actual normal values, one can use this array to select into the normals
array, e.g. <tt class="docutils literal"><span class="pre">normal[normal_index]</span></tt>.</p>
</dd></dl>

<dl class="attribute">
<dt id="collada.triangleset.TriangleSet.texbinormal_indexset">
<tt class="descname">texbinormal_indexset</tt><a class="headerlink" href="#collada.triangleset.TriangleSet.texbinormal_indexset" title="Permalink to this definition"></a></dt>
<dd><p>Read-only tuple of texture binormal index arrays. Each value is a numpy.array of size
Nx3 where N is the number of vertices in the primitive. To get the actual texture
binormals, one can use the array to select into the texbinormalset array, e.g.
<tt class="docutils literal"><span class="pre">texbinormalset[0][texbinormal_indexset[0]]</span></tt> would select the first set of texture
binormals.</p>
</dd></dl>

<dl class="attribute">
<dt id="collada.triangleset.TriangleSet.texbinormalset">
<tt class="descname">texbinormalset</tt><a class="headerlink" href="#collada.triangleset.TriangleSet.texbinormalset" title="Permalink to this definition"></a></dt>
<dd><p>Read-only tuple of texture binormal arrays. Each value is a numpy.array of size
Nx3 where N is the number of texture binormals in the primitive&#8217;s source array.</p>
</dd></dl>

<dl class="attribute">
<dt id="collada.triangleset.TriangleSet.texcoord_indexset">
<tt class="descname">texcoord_indexset</tt><a class="headerlink" href="#collada.triangleset.TriangleSet.texcoord_indexset" title="Permalink to this definition"></a></dt>
<dd><p>Read-only tuple of texture coordinate index arrays. Each value is a numpy.array of size
Nx2 where N is the number of vertices in the primitive. To get the actual texture
coordinates, one can use the array to select into the texcoordset array, e.g.
<tt class="docutils literal"><span class="pre">texcoordset[0][texcoord_indexset[0]]</span></tt> would select the first set of texture
coordinates.</p>
</dd></dl>

<dl class="attribute">
<dt id="collada.triangleset.TriangleSet.texcoordset">
<tt class="descname">texcoordset</tt><a class="headerlink" href="#collada.triangleset.TriangleSet.texcoordset" title="Permalink to this definition"></a></dt>
<dd><p>Read-only tuple of texture coordinate arrays. Each value is a numpy.array of size
Nx2 where N is the number of texture coordinates in the primitive&#8217;s source array.</p>
</dd></dl>

<dl class="attribute">
<dt id="collada.triangleset.TriangleSet.textangent_indexset">
<tt class="descname">textangent_indexset</tt><a class="headerlink" href="#collada.triangleset.TriangleSet.textangent_indexset" title="Permalink to this definition"></a></dt>
<dd><p>Read-only tuple of texture tangent index arrays. Each value is a numpy.array of size
Nx3 where N is the number of vertices in the primitive. To get the actual texture
tangents, one can use the array to select into the textangentset array, e.g.
<tt class="docutils literal"><span class="pre">textangentset[0][textangent_indexset[0]]</span></tt> would select the first set of texture
tangents.</p>
</dd></dl>

<dl class="attribute">
<dt id="collada.triangleset.TriangleSet.textangentset">
<tt class="descname">textangentset</tt><a class="headerlink" href="#collada.triangleset.TriangleSet.textangentset" title="Permalink to this definition"></a></dt>
<dd><p>Read-only tuple of texture tangent arrays. Each value is a numpy.array of size
Nx3 where N is the number of texture tangents in the primitive&#8217;s source array.</p>
</dd></dl>

<dl class="attribute">
<dt id="collada.triangleset.TriangleSet.vertex">
<tt class="descname">vertex</tt><a class="headerlink" href="#collada.triangleset.TriangleSet.vertex" title="Permalink to this definition"></a></dt>
<dd><p>Read-only numpy.array of size Nx3 where N is the number of vertex points in the
primitive&#8217;s vertex source array.</p>
</dd></dl>

<dl class="attribute">
<dt id="collada.triangleset.TriangleSet.vertex_index">
<tt class="descname">vertex_index</tt><a class="headerlink" href="#collada.triangleset.TriangleSet.vertex_index" title="Permalink to this definition"></a></dt>
<dd><p>Read-only numpy.array of size Nx3 where N is the number of vertices in the primitive.
To get the actual vertex points, one can use this array to select into the vertex
array, e.g. <tt class="docutils literal"><span class="pre">vertex[vertex_index]</span></tt>.</p>
</dd></dl>

</dd></dl>

</div>


          </div>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../../genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="../../py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="collada.util.html" title="collada.util"
             >next</a> |</li>
        <li class="right" >
          <a href="collada.triangleset.Triangle.html" title="collada.triangleset.Triangle"
             >previous</a> |</li>
        <li><a href="../../index.html">pycollada 0.4 documentation</a> &raquo;</li>
          <li><a href="../index.html" >API Reference</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
        &copy; Copyright 2011, Jeff Terrace and contributors.
      Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.
    </div>
  </body>
</html>