/usr/share/doc/python-collada/html/reference/generated/collada.polylist.Polylist.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 315 316 317 318 319 320 321 322 | <!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.polylist.Polylist — 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.primitive" href="collada.primitive.html" />
<link rel="prev" title="collada.polylist.Polygon" href="collada.polylist.Polygon.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.primitive.html" title="collada.primitive"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="collada.polylist.Polygon.html" title="collada.polylist.Polygon"
accesskey="P">previous</a> |</li>
<li><a href="../../index.html">pycollada 0.4 documentation</a> »</li>
<li><a href="../index.html" accesskey="U">API Reference</a> »</li>
</ul>
</div>
<div class="sphinxsidebar">
<div class="sphinxsidebarwrapper">
<h4>Previous topic</h4>
<p class="topless"><a href="collada.polylist.Polygon.html"
title="previous chapter">collada.polylist.Polygon</a></p>
<h4>Next topic</h4>
<p class="topless"><a href="collada.primitive.html"
title="next chapter">collada.primitive</a></p>
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="../../_sources/reference/generated/collada.polylist.Polylist.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-polylist-polylist">
<h1>collada.polylist.Polylist<a class="headerlink" href="#collada-polylist-polylist" title="Permalink to this headline">¶</a></h1>
<dl class="class">
<dt id="collada.polylist.Polylist">
<em class="property">class </em><tt class="descclassname">collada.polylist.</tt><tt class="descname">Polylist</tt><big>(</big><em>sources</em>, <em>material</em>, <em>index</em>, <em>vcounts</em>, <em>xmlnode=None</em><big>)</big><a class="headerlink" href="#collada.polylist.Polylist" 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 <polylist> tag, a collection of
polygons. The Polylist object is read-only. To modify a Polylist, create a new
instance using <a class="reference internal" href="collada.geometry.Geometry.html#collada.geometry.Geometry.createPolylist" title="collada.geometry.Geometry.createPolylist"><tt class="xref py py-meth docutils literal"><span class="pre">collada.geometry.Geometry.createPolylist()</span></tt></a>.</p>
<ul class="simple">
<li>If <tt class="docutils literal"><span class="pre">P</span></tt> is an instance of <a class="reference internal" href="#collada.polylist.Polylist" title="collada.polylist.Polylist"><tt class="xref py py-class docutils literal"><span class="pre">collada.polylist.Polylist</span></tt></a>, then <tt class="docutils literal"><span class="pre">len(P)</span></tt>
returns the number of polygons in the set. <tt class="docutils literal"><span class="pre">P[i]</span></tt> returns the i<sup>th</sup>
polygon in the set.</li>
</ul>
<p class="graphviz">
digraph inheritanced10274bdba {
rankdir=LR;
size="8.0, 12.0";
"DaeObject" [style="setlinewidth(0.5)",URL="collada.common.DaeObject.html#collada.common.DaeObject",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="This class is the abstract interface to all collada objects.",height=0.25,shape=box,fontsize=10];
"Polygons" [style="setlinewidth(0.5)",URL="collada.polygons.Polygons.html#collada.polygons.Polygons",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="Class containing the data COLLADA puts in a <polygons> tag, a collection of",height=0.25,shape=box,fontsize=10];
"Polylist" -> "Polygons" [arrowsize=0.5,style="setlinewidth(0.5)"];
"Primitive" [style="setlinewidth(0.5)",URL="collada.primitive.Primitive.html#collada.primitive.Primitive",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="Base class for all primitive sets like TriangleSet, LineSet, Polylist, etc.",height=0.25,shape=box,fontsize=10];
"DaeObject" -> "Primitive" [arrowsize=0.5,style="setlinewidth(0.5)"];
"TriangleSet" [style="setlinewidth(0.5)",URL="collada.triangleset.TriangleSet.html#collada.triangleset.TriangleSet",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="Class containing the data COLLADA puts in a <triangles> tag, a collection of",height=0.25,shape=box,fontsize=10];
"Primitive" -> "TriangleSet" [arrowsize=0.5,style="setlinewidth(0.5)"];
"LineSet" [style="setlinewidth(0.5)",URL="collada.lineset.LineSet.html#collada.lineset.LineSet",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="Class containing the data COLLADA puts in a <lines> tag, a collection of",height=0.25,shape=box,fontsize=10];
"Primitive" -> "LineSet" [arrowsize=0.5,style="setlinewidth(0.5)"];
"Polylist" [style="setlinewidth(0.5)",URL="#collada.polylist.Polylist",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="Class containing the data COLLADA puts in a <polylist> tag, a collection of",height=0.25,shape=box,fontsize=10];
"Primitive" -> "Polylist" [arrowsize=0.5,style="setlinewidth(0.5)"];
}
</p>
<dl class="method">
<dt id="collada.polylist.Polylist.__init__">
<tt class="descname">__init__</tt><big>(</big><em>sources</em>, <em>material</em>, <em>index</em>, <em>vcounts</em>, <em>xmlnode=None</em><big>)</big><a class="headerlink" href="#collada.polylist.Polylist.__init__" title="Permalink to this definition">¶</a></dt>
<dd><p>A Polylist should not be created manually. Instead, call the
<a class="reference internal" href="collada.geometry.Geometry.html#collada.geometry.Geometry.createPolylist" title="collada.geometry.Geometry.createPolylist"><tt class="xref py py-meth docutils literal"><span class="pre">collada.geometry.Geometry.createPolylist()</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.polylist.Polylist.__init__" title="collada.polylist.Polylist.__init__"><tt class="xref py py-obj docutils literal"><span class="pre">__init__</span></tt></a>(sources, material, index, vcounts)</td>
<td>A Polylist should not be created manually. Instead, call the</td>
</tr>
<tr class="row-even"><td><a class="reference internal" href="#collada.polylist.Polylist.bind" title="collada.polylist.Polylist.bind"><tt class="xref py py-obj docutils literal"><span class="pre">bind</span></tt></a>(matrix, materialnodebysymbol)</td>
<td>Create a bound polylist from this polylist, 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, localscope, 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>
<tr class="row-odd"><td><a class="reference internal" href="#collada.polylist.Polylist.triangleset" title="collada.polylist.Polylist.triangleset"><tt class="xref py py-obj docutils literal"><span class="pre">triangleset</span></tt></a>()</td>
<td>This performs a simple triangulation of the polylist using the fanning method.</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.polylist.Polylist.normal" title="collada.polylist.Polylist.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.polylist.Polylist.normal_index" title="collada.polylist.Polylist.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.polylist.Polylist.texcoord_indexset" title="collada.polylist.Polylist.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.polylist.Polylist.texcoordset" title="collada.polylist.Polylist.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.polylist.Polylist.vertex" title="collada.polylist.Polylist.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.polylist.Polylist.vertex_index" title="collada.polylist.Polylist.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="attribute">
<dt id="collada.polylist.Polylist.xmlnode">
<tt class="descname">xmlnode</tt><em class="property"> = None</em><a class="headerlink" href="#collada.polylist.Polylist.xmlnode" title="Permalink to this definition">¶</a></dt>
<dd><p>ElementTree representation of the line set.</p>
</dd></dl>
<dl class="method">
<dt id="collada.polylist.Polylist.triangleset">
<tt class="descname">triangleset</tt><big>(</big><big>)</big><a class="headerlink" href="#collada.polylist.Polylist.triangleset" title="Permalink to this definition">¶</a></dt>
<dd><p>This performs a simple triangulation of the polylist using the fanning method.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference internal" href="collada.triangleset.TriangleSet.html#collada.triangleset.TriangleSet" title="collada.triangleset.TriangleSet"><tt class="xref py py-class docutils literal"><span class="pre">collada.triangleset.TriangleSet</span></tt></a></td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="method">
<dt id="collada.polylist.Polylist.bind">
<tt class="descname">bind</tt><big>(</big><em>matrix</em>, <em>materialnodebysymbol</em><big>)</big><a class="headerlink" href="#collada.polylist.Polylist.bind" title="Permalink to this definition">¶</a></dt>
<dd><p>Create a bound polylist from this polylist, transform and material mapping</p>
</dd></dl>
<dl class="method">
<dt id="collada.polylist.Polylist.getInputList">
<tt class="descname">getInputList</tt><big>(</big><big>)</big><a class="headerlink" href="#collada.polylist.Polylist.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.polylist.Polylist.normal">
<tt class="descname">normal</tt><a class="headerlink" href="#collada.polylist.Polylist.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’s normal source array.</p>
</dd></dl>
<dl class="attribute">
<dt id="collada.polylist.Polylist.normal_index">
<tt class="descname">normal_index</tt><a class="headerlink" href="#collada.polylist.Polylist.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.polylist.Polylist.texbinormal_indexset">
<tt class="descname">texbinormal_indexset</tt><a class="headerlink" href="#collada.polylist.Polylist.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.polylist.Polylist.texbinormalset">
<tt class="descname">texbinormalset</tt><a class="headerlink" href="#collada.polylist.Polylist.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’s source array.</p>
</dd></dl>
<dl class="attribute">
<dt id="collada.polylist.Polylist.texcoord_indexset">
<tt class="descname">texcoord_indexset</tt><a class="headerlink" href="#collada.polylist.Polylist.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.polylist.Polylist.texcoordset">
<tt class="descname">texcoordset</tt><a class="headerlink" href="#collada.polylist.Polylist.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’s source array.</p>
</dd></dl>
<dl class="attribute">
<dt id="collada.polylist.Polylist.textangent_indexset">
<tt class="descname">textangent_indexset</tt><a class="headerlink" href="#collada.polylist.Polylist.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.polylist.Polylist.textangentset">
<tt class="descname">textangentset</tt><a class="headerlink" href="#collada.polylist.Polylist.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’s source array.</p>
</dd></dl>
<dl class="attribute">
<dt id="collada.polylist.Polylist.vertex">
<tt class="descname">vertex</tt><a class="headerlink" href="#collada.polylist.Polylist.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’s vertex source array.</p>
</dd></dl>
<dl class="attribute">
<dt id="collada.polylist.Polylist.vertex_index">
<tt class="descname">vertex_index</tt><a class="headerlink" href="#collada.polylist.Polylist.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.primitive.html" title="collada.primitive"
>next</a> |</li>
<li class="right" >
<a href="collada.polylist.Polygon.html" title="collada.polylist.Polygon"
>previous</a> |</li>
<li><a href="../../index.html">pycollada 0.4 documentation</a> »</li>
<li><a href="../index.html" >API Reference</a> »</li>
</ul>
</div>
<div class="footer">
© Copyright 2011, Jeff Terrace and contributors.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.
</div>
</body>
</html>
|