source: NonGTP/FCollada/Documentation/class_f_c_d_geometry_mesh.html @ 964

Revision 964, 49.8 KB checked in by igarcia, 19 years ago (diff)
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3<title>FCollada: FCDGeometryMesh Class Reference</title>
4<link href="doxygen.css" rel="stylesheet" type="text/css">
5<link href="tabs.css" rel="stylesheet" type="text/css">
6</head><body>
7<!-- Generated by Doxygen 1.4.6-NO -->
8<div class="tabs">
9  <ul>
10    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
11    <li><a href="modules.html"><span>Modules</span></a></li>
12    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
13    <li id="current"><a href="classes.html"><span>Classes</span></a></li>
14    <li><a href="files.html"><span>Files</span></a></li>
15    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
16  </ul></div>
17<div class="tabs">
18  <ul>
19    <li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
20    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
21    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
22    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
23  </ul></div>
24<h1>FCDGeometryMesh Class Reference<br>
25<small>
26[<a class="el" href="group___f_c_d_geometry.html">COLLADA Document Geometry Entity</a>]</small>
27</h1><!-- doxytag: class="FCDGeometryMesh" --><!-- doxytag: inherits="FCDObject" -->A COLLADA geometric mesh. 
28<a href="#_details">More...</a>
29<p>
30<code>#include &lt;<a class="el" href="_f_c_d_geometry_mesh_8h-source.html">FCDGeometryMesh.h</a>&gt;</code>
31<p>
32<p>Inheritance diagram for FCDGeometryMesh:
33<p><center><img src="class_f_c_d_geometry_mesh.png" usemap="#FCDGeometryMesh_map" border="0" alt=""></center>
34<map name="FCDGeometryMesh_map">
35<area href="class_f_c_d_object.html" alt="FCDObject" shape="rect" coords="0,56,123,80">
36<area href="class_f_u_object.html" alt="FUObject" shape="rect" coords="0,0,123,24">
37</map>
38<a href="class_f_c_d_geometry_mesh-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
39<tr><td></td></tr>
40<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
41<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_c_d_geometry_mesh.html#6f1c5510f106416551bd2c331f9ea022">FCDGeometryMesh</a> (<a class="el" href="class_f_c_document.html">FCDocument</a> *document, <a class="el" href="class_f_c_d_geometry.html">FCDGeometry</a> *parent)</td></tr>
42
43<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Contructor: do not use directly.  <a href="#6f1c5510f106416551bd2c331f9ea022"></a><br></td></tr>
44<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_c_d_geometry_mesh.html#4a7a7f0ab7fad0da0db7b7d13dd8570b">~FCDGeometryMesh</a> ()</td></tr>
45
46<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructor: do not use directly.  <a href="#4a7a7f0ab7fad0da0db7b7d13dd8570b"></a><br></td></tr>
47<tr><td class="memItemLeft" nowrap align="right" valign="top">size_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_c_d_geometry_mesh.html#3c551f539e902eee84aa773a22d83c01">GetFaceCount</a> () const </td></tr>
48
49<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retrieves the number of faces within the geometric mesh.  <a href="#3c551f539e902eee84aa773a22d83c01"></a><br></td></tr>
50<tr><td class="memItemLeft" nowrap align="right" valign="top">size_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_c_d_geometry_mesh.html#e5f4ce74dcda45627dffdbfeb2125979">GetHoleCount</a> () const </td></tr>
51
52<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retrieves the number of holes within the faces of the geometric mesh.  <a href="#e5f4ce74dcda45627dffdbfeb2125979"></a><br></td></tr>
53<tr><td class="memItemLeft" nowrap align="right" valign="top">size_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_c_d_geometry_mesh.html#86adc3c12dc416d492abd8a28e6a4977">GetFaceVertexCount</a> () const </td></tr>
54
55<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retrieves the total number of per-face vertices in the mesh.  <a href="#86adc3c12dc416d492abd8a28e6a4977"></a><br></td></tr>
56<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_c_d_geometry_mesh.html#4c85484537b78efa26b75d40fd744a21">IsDoubleSided</a> () const </td></tr>
57
58<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retrieves whether the mesh should be treated as double-sided.  <a href="#4c85484537b78efa26b75d40fd744a21"></a><br></td></tr>
59<tr><td class="memItemLeft" nowrap align="right" valign="top">const string &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_c_d_geometry_mesh.html#5c7878893bfad14a59173537e3cfc72c">GetDaeId</a> () const </td></tr>
60
61<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retrieves the COLLADA id of the mesh.  <a href="#5c7878893bfad14a59173537e3cfc72c"></a><br></td></tr>
62<tr><td class="memItemLeft" nowrap align="right" valign="top">size_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_c_d_geometry_mesh.html#4084371b8ae62cd07762775f81f9f613">GetPolygonsCount</a> () const </td></tr>
63
64<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retrieves the number of independent polygon groups.  <a href="#4084371b8ae62cd07762775f81f9f613"></a><br></td></tr>
65<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_f_c_d_geometry_polygons.html">FCDGeometryPolygons</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_c_d_geometry_mesh.html#990c21288535abe1d92c89b71ff662e3">GetPolygons</a> (size_t index)</td></tr>
66
67<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retrieves a specific polygon group.  <a href="#990c21288535abe1d92c89b71ff662e3"></a><br></td></tr>
68<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="99cbf42129bc06552153e4a2fc6a5910"></a><!-- doxytag: member="FCDGeometryMesh::GetPolygons" ref="99cbf42129bc06552153e4a2fc6a5910" args="(size_t index) const " -->
69const <a class="el" href="class_f_c_d_geometry_polygons.html">FCDGeometryPolygons</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_c_d_geometry_mesh.html#99cbf42129bc06552153e4a2fc6a5910">GetPolygons</a> (size_t index) const </td></tr>
70
71<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">See above. <br></td></tr>
72<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_f_c_d_geometry_polygons.html">FCDGeometryPolygons</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_c_d_geometry_mesh.html#01b330b011b612fa003d525d4090323c">AddPolygons</a> ()</td></tr>
73
74<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a new polygon group.  <a href="#01b330b011b612fa003d525d4090323c"></a><br></td></tr>
75<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classvector.html">FCDGeometrySourceList</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_c_d_geometry_mesh.html#86e48d859b6756bfa89c928d9a60749d">GetVertexSources</a> ()</td></tr>
76
77<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">[INTERNAL] Retrieves the list of per-vertex data sources.  <a href="#86e48d859b6756bfa89c928d9a60749d"></a><br></td></tr>
78<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f17888cc08c964d90551d86e9c08425d"></a><!-- doxytag: member="FCDGeometryMesh::GetVertexSources" ref="f17888cc08c964d90551d86e9c08425d" args="() const " -->
79const <a class="el" href="classvector.html">FCDGeometrySourceList</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_c_d_geometry_mesh.html#f17888cc08c964d90551d86e9c08425d">GetVertexSources</a> () const </td></tr>
80
81<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">See above. <br></td></tr>
82<tr><td class="memItemLeft" nowrap align="right" valign="top">size_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_c_d_geometry_mesh.html#5c0629b519bf32d5f4f172e3b0502de9">GetVertexSourceCount</a> () const </td></tr>
83
84<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retrieves the number of per-vertex data sources.  <a href="#5c0629b519bf32d5f4f172e3b0502de9"></a><br></td></tr>
85<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_f_c_d_geometry_source.html">FCDGeometrySource</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_c_d_geometry_mesh.html#728dd8d9dc103b9c9a4013dd882344ee">GetVertexSource</a> (size_t index)</td></tr>
86
87<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retrieves a specific per-vertex data source.  <a href="#728dd8d9dc103b9c9a4013dd882344ee"></a><br></td></tr>
88<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9f0976292b2349fb3ed58940d6e80922"></a><!-- doxytag: member="FCDGeometryMesh::GetVertexSource" ref="9f0976292b2349fb3ed58940d6e80922" args="(size_t index) const " -->
89const <a class="el" href="class_f_c_d_geometry_source.html">FCDGeometrySource</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_c_d_geometry_mesh.html#9f0976292b2349fb3ed58940d6e80922">GetVertexSource</a> (size_t index) const </td></tr>
90
91<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">See above. <br></td></tr>
92<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_f_c_d_geometry_source.html">FCDGeometrySource</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_c_d_geometry_mesh.html#5bef08e8f470a568f342a602c1a4ae87">AddVertexSource</a> ()</td></tr>
93
94<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a new per-vertex data source for this geometric mesh.  <a href="#5bef08e8f470a568f342a602c1a4ae87"></a><br></td></tr>
95<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_f_c_d_geometry_source.html">FCDGeometrySource</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_c_d_geometry_mesh.html#25d35d5ef5d330a09fdd61986b6936d5">FindSourceById</a> (const string &amp;id)</td></tr>
96
97<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">[INTERNAL] Retrieves the data source that matches the given COLLADA id.  <a href="#25d35d5ef5d330a09fdd61986b6936d5"></a><br></td></tr>
98<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="017a4ac49c0c5b569c0a797fe3408802"></a><!-- doxytag: member="FCDGeometryMesh::FindSourceById" ref="017a4ac49c0c5b569c0a797fe3408802" args="(const string &amp;id) const " -->
99const <a class="el" href="class_f_c_d_geometry_source.html">FCDGeometrySource</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_c_d_geometry_mesh.html#017a4ac49c0c5b569c0a797fe3408802">FindSourceById</a> (const string &amp;id) const </td></tr>
100
101<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">See above. <br></td></tr>
102<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_f_c_d_geometry_source.html">FCDGeometrySource</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_c_d_geometry_mesh.html#85bfd86c44d637d2fc61cceb21e915c7">GetPositionSource</a> ()</td></tr>
103
104<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retrieves the per-vertex data that specifically contains the vertex positions.  <a href="#85bfd86c44d637d2fc61cceb21e915c7"></a><br></td></tr>
105<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="370c274c5664868793d95b39d6259d75"></a><!-- doxytag: member="FCDGeometryMesh::GetPositionSource" ref="370c274c5664868793d95b39d6259d75" args="() const " -->
106const <a class="el" href="class_f_c_d_geometry_source.html">FCDGeometrySource</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_c_d_geometry_mesh.html#370c274c5664868793d95b39d6259d75">GetPositionSource</a> () const </td></tr>
107
108<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">See above. <br></td></tr>
109<tr><td class="memItemLeft" nowrap align="right" valign="top">size_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_c_d_geometry_mesh.html#7581dd3fbd707e8e19832a7f7c57de26">GetSourceCount</a> () const </td></tr>
110
111<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retrieves the number of data sources contained within this geometric mesh.  <a href="#7581dd3fbd707e8e19832a7f7c57de26"></a><br></td></tr>
112<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_f_c_d_geometry_source.html">FCDGeometrySource</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_c_d_geometry_mesh.html#cf9352020a124bf2ebb371dd39e49ec6">GetSource</a> (size_t index)</td></tr>
113
114<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retrieves a specific data source.  <a href="#cf9352020a124bf2ebb371dd39e49ec6"></a><br></td></tr>
115<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6eed13657d4095926b0b298024bd5c3f"></a><!-- doxytag: member="FCDGeometryMesh::GetSource" ref="6eed13657d4095926b0b298024bd5c3f" args="(size_t index) const " -->
116const <a class="el" href="class_f_c_d_geometry_source.html">FCDGeometrySource</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_c_d_geometry_mesh.html#6eed13657d4095926b0b298024bd5c3f">GetSource</a> (size_t index) const </td></tr>
117
118<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">See above. <br></td></tr>
119<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_f_c_d_geometry_source.html">FCDGeometrySource</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_c_d_geometry_mesh.html#2c366584e4a4434fa5bd1e78f0e7f150">AddSource</a> ()</td></tr>
120
121<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a new data source for this geometric mesh.  <a href="#2c366584e4a4434fa5bd1e78f0e7f150"></a><br></td></tr>
122<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_c_d_geometry_mesh.html#b62632ee269cb4485602c93d8604ea15">Triangulate</a> ()</td></tr>
123
124<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Triangulates the mesh.  <a href="#b62632ee269cb4485602c93d8604ea15"></a><br></td></tr>
125<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_c_d_geometry_mesh.html#d5227d055e5a3d1f7f0623724fab2586">Recalculate</a> ()</td></tr>
126
127<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">[INTERNAL] Forces the recalculation of the hole count, vertex count, face-vertex counts and their offsets.  <a href="#d5227d055e5a3d1f7f0623724fab2586"></a><br></td></tr>
128<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_f_c_d_geometry_mesh.html">FCDGeometryMesh</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_c_d_geometry_mesh.html#bc8db963c5a9cb9f0fde972482854de3">Clone</a> (<a class="el" href="classvector.html">FloatList</a> &amp;newPositions, uint32 newPositionsStride, <a class="el" href="classvector.html">FloatList</a> &amp;newNormals, uint32 newNormalsStride)</td></tr>
129
130<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">[INTERNAL] Creates a copy of this mesh.  <a href="#bc8db963c5a9cb9f0fde972482854de3"></a><br></td></tr>
131<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_f_u_status.html">FUStatus</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_c_d_geometry_mesh.html#d3ee5f3f3787296164f1cf87ee71bb0e">LoadFromXML</a> (xmlNode *meshNode)</td></tr>
132
133<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">[INTERNAL] Reads in the &lt;mesh&gt; element from a given COLLADA XML tree node.  <a href="#d3ee5f3f3787296164f1cf87ee71bb0e"></a><br></td></tr>
134<tr><td class="memItemLeft" nowrap align="right" valign="top">xmlNode *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_f_c_d_geometry_mesh.html#5f0a27e7b03642887cbb02f3f92bc814">WriteToXML</a> (xmlNode *parentNode) const </td></tr>
135
136<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">[INTERNAL] Writes out the &lt;mesh&gt; element to the given COLLADA XML tree node.  <a href="#5f0a27e7b03642887cbb02f3f92bc814"></a><br></td></tr>
137</table>
138<hr><a name="_details"></a><h2>Detailed Description</h2>
139A COLLADA geometric mesh.
140<p>
141A COLLADA geometric mesh is a list of vertices tied together in polygons. A set of per-vertex data is used to determine the vertices of the mesh. This data usually includes a single list: of vertex positions, but it may also contain per-vertex colors, per-vertex normals or per-vertex texture coordinates. The other data sources declare per-vertex-face data.<p>
142The faces of a mesh may be split across different groups, as they may have different materials assigned to them. The <a class="el" href="class_f_c_d_geometry_polygons.html">FCDGeometryPolygons</a> objects contains one such group of faces.
143<p>
144<hr><h2>Constructor &amp; Destructor Documentation</h2>
145<a class="anchor" name="6f1c5510f106416551bd2c331f9ea022"></a><!-- doxytag: member="FCDGeometryMesh::FCDGeometryMesh" ref="6f1c5510f106416551bd2c331f9ea022" args="(FCDocument *document, FCDGeometry *parent)" --><p>
146<table class="mdTable" cellpadding="2" cellspacing="0">
147  <tr>
148    <td class="mdRow">
149      <table cellpadding="0" cellspacing="0" border="0">
150        <tr>
151          <td class="md" nowrap valign="top">FCDGeometryMesh::FCDGeometryMesh           </td>
152          <td class="md" valign="top">(&nbsp;</td>
153          <td class="md" nowrap valign="top"><a class="el" href="class_f_c_document.html">FCDocument</a> *&nbsp;</td>
154          <td class="mdname" nowrap> <em>document</em>, </td>
155        </tr>
156        <tr>
157          <td class="md" nowrap align="right"></td>
158          <td class="md"></td>
159          <td class="md" nowrap><a class="el" href="class_f_c_d_geometry.html">FCDGeometry</a> *&nbsp;</td>
160          <td class="mdname" nowrap> <em>parent</em></td>
161        </tr>
162        <tr>
163          <td class="md"></td>
164          <td class="md">)&nbsp;</td>
165          <td class="md" colspan="2"></td>
166        </tr>
167      </table>
168    </td>
169  </tr>
170</table>
171<table cellspacing="5" cellpadding="0" border="0">
172  <tr>
173    <td>
174      &nbsp;
175    </td>
176    <td>
177
178<p>
179Contructor: do not use directly.
180<p>
181Use FCDGeometry::AddMesh instead. <dl compact><dt><b>Parameters:</b></dt><dd>
182  <table border="0" cellspacing="2" cellpadding="0">
183    <tr><td valign="top"></td><td valign="top"><em>document</em>&nbsp;</td><td>The COLLADA document which owns this mesh. </td></tr>
184    <tr><td valign="top"></td><td valign="top"><em>parent</em>&nbsp;</td><td>The geometry entity which contains this mesh. </td></tr>
185  </table>
186</dl>
187    </td>
188  </tr>
189</table>
190<a class="anchor" name="4a7a7f0ab7fad0da0db7b7d13dd8570b"></a><!-- doxytag: member="FCDGeometryMesh::~FCDGeometryMesh" ref="4a7a7f0ab7fad0da0db7b7d13dd8570b" args="()" --><p>
191<table class="mdTable" cellpadding="2" cellspacing="0">
192  <tr>
193    <td class="mdRow">
194      <table cellpadding="0" cellspacing="0" border="0">
195        <tr>
196          <td class="md" nowrap valign="top">virtual FCDGeometryMesh::~FCDGeometryMesh           </td>
197          <td class="md" valign="top">(&nbsp;</td>
198          <td class="mdname1" valign="top" nowrap>          </td>
199          <td class="md" valign="top">&nbsp;)&nbsp;</td>
200          <td class="md" nowrap><code> [virtual]</code></td>
201        </tr>
202      </table>
203    </td>
204  </tr>
205</table>
206<table cellspacing="5" cellpadding="0" border="0">
207  <tr>
208    <td>
209      &nbsp;
210    </td>
211    <td>
212
213<p>
214Destructor: do not use directly.
215<p>
216All geometric meshes are released with the geometry that they belong to.     </td>
217  </tr>
218</table>
219<hr><h2>Member Function Documentation</h2>
220<a class="anchor" name="01b330b011b612fa003d525d4090323c"></a><!-- doxytag: member="FCDGeometryMesh::AddPolygons" ref="01b330b011b612fa003d525d4090323c" args="()" --><p>
221<table class="mdTable" cellpadding="2" cellspacing="0">
222  <tr>
223    <td class="mdRow">
224      <table cellpadding="0" cellspacing="0" border="0">
225        <tr>
226          <td class="md" nowrap valign="top"><a class="el" href="class_f_c_d_geometry_polygons.html">FCDGeometryPolygons</a>* FCDGeometryMesh::AddPolygons           </td>
227          <td class="md" valign="top">(&nbsp;</td>
228          <td class="mdname1" valign="top" nowrap>          </td>
229          <td class="md" valign="top">&nbsp;)&nbsp;</td>
230          <td class="md" nowrap></td>
231        </tr>
232      </table>
233    </td>
234  </tr>
235</table>
236<table cellspacing="5" cellpadding="0" border="0">
237  <tr>
238    <td>
239      &nbsp;
240    </td>
241    <td>
242
243<p>
244Creates a new polygon group.
245<p>
246Each polygon group is represented within a <a class="el" href="class_f_c_d_geometry_polygons.html">FCDGeometryPolygons</a> object. The new polygon group will be assigned all the existing per-vertex data sources. No material will be assigned to the new polygon group. <dl compact><dt><b>Returns:</b></dt><dd>The new polygon group. This pointer should never be NULL. </dd></dl>
247    </td>
248  </tr>
249</table>
250<a class="anchor" name="2c366584e4a4434fa5bd1e78f0e7f150"></a><!-- doxytag: member="FCDGeometryMesh::AddSource" ref="2c366584e4a4434fa5bd1e78f0e7f150" args="()" --><p>
251<table class="mdTable" cellpadding="2" cellspacing="0">
252  <tr>
253    <td class="mdRow">
254      <table cellpadding="0" cellspacing="0" border="0">
255        <tr>
256          <td class="md" nowrap valign="top"><a class="el" href="class_f_c_d_geometry_source.html">FCDGeometrySource</a>* FCDGeometryMesh::AddSource           </td>
257          <td class="md" valign="top">(&nbsp;</td>
258          <td class="mdname1" valign="top" nowrap>          </td>
259          <td class="md" valign="top">&nbsp;)&nbsp;</td>
260          <td class="md" nowrap></td>
261        </tr>
262      </table>
263    </td>
264  </tr>
265</table>
266<table cellspacing="5" cellpadding="0" border="0">
267  <tr>
268    <td>
269      &nbsp;
270    </td>
271    <td>
272
273<p>
274Creates a new data source for this geometric mesh.
275<p>
276The new data source will not be added to any of the existing polygon groups. <dl compact><dt><b>Returns:</b></dt><dd>The new per-vertex data source. This pointer should never be NULL. </dd></dl>
277    </td>
278  </tr>
279</table>
280<a class="anchor" name="5bef08e8f470a568f342a602c1a4ae87"></a><!-- doxytag: member="FCDGeometryMesh::AddVertexSource" ref="5bef08e8f470a568f342a602c1a4ae87" args="()" --><p>
281<table class="mdTable" cellpadding="2" cellspacing="0">
282  <tr>
283    <td class="mdRow">
284      <table cellpadding="0" cellspacing="0" border="0">
285        <tr>
286          <td class="md" nowrap valign="top"><a class="el" href="class_f_c_d_geometry_source.html">FCDGeometrySource</a>* FCDGeometryMesh::AddVertexSource           </td>
287          <td class="md" valign="top">(&nbsp;</td>
288          <td class="mdname1" valign="top" nowrap>          </td>
289          <td class="md" valign="top">&nbsp;)&nbsp;</td>
290          <td class="md" nowrap></td>
291        </tr>
292      </table>
293    </td>
294  </tr>
295</table>
296<table cellspacing="5" cellpadding="0" border="0">
297  <tr>
298    <td>
299      &nbsp;
300    </td>
301    <td>
302
303<p>
304Creates a new per-vertex data source for this geometric mesh.
305<p>
306The per-vertex data source will be added to both the per-vertex data source list and the data source list. The new per-vertex data source will automatically be added to all the existing polygon groups. <dl compact><dt><b>Returns:</b></dt><dd>The new per-vertex data source. This pointer should never be NULL. </dd></dl>
307    </td>
308  </tr>
309</table>
310<a class="anchor" name="bc8db963c5a9cb9f0fde972482854de3"></a><!-- doxytag: member="FCDGeometryMesh::Clone" ref="bc8db963c5a9cb9f0fde972482854de3" args="(FloatList &amp;newPositions, uint32 newPositionsStride, FloatList &amp;newNormals, uint32 newNormalsStride)" --><p>
311<table class="mdTable" cellpadding="2" cellspacing="0">
312  <tr>
313    <td class="mdRow">
314      <table cellpadding="0" cellspacing="0" border="0">
315        <tr>
316          <td class="md" nowrap valign="top"><a class="el" href="class_f_c_d_geometry_mesh.html">FCDGeometryMesh</a>* FCDGeometryMesh::Clone           </td>
317          <td class="md" valign="top">(&nbsp;</td>
318          <td class="md" nowrap valign="top"><a class="el" href="classvector.html">FloatList</a> &amp;&nbsp;</td>
319          <td class="mdname" nowrap> <em>newPositions</em>, </td>
320        </tr>
321        <tr>
322          <td class="md" nowrap align="right"></td>
323          <td class="md"></td>
324          <td class="md" nowrap>uint32&nbsp;</td>
325          <td class="mdname" nowrap> <em>newPositionsStride</em>, </td>
326        </tr>
327        <tr>
328          <td class="md" nowrap align="right"></td>
329          <td class="md"></td>
330          <td class="md" nowrap><a class="el" href="classvector.html">FloatList</a> &amp;&nbsp;</td>
331          <td class="mdname" nowrap> <em>newNormals</em>, </td>
332        </tr>
333        <tr>
334          <td class="md" nowrap align="right"></td>
335          <td class="md"></td>
336          <td class="md" nowrap>uint32&nbsp;</td>
337          <td class="mdname" nowrap> <em>newNormalsStride</em></td>
338        </tr>
339        <tr>
340          <td class="md"></td>
341          <td class="md">)&nbsp;</td>
342          <td class="md" colspan="2"></td>
343        </tr>
344      </table>
345    </td>
346  </tr>
347</table>
348<table cellspacing="5" cellpadding="0" border="0">
349  <tr>
350    <td>
351      &nbsp;
352    </td>
353    <td>
354
355<p>
356[INTERNAL] Creates a copy of this mesh.
357<p>
358You may use the <a class="el" href="class_f_c_d_geometry.html#4e3a2616799ec7f94a81a358d2ec1eeb">FCDGeometry::Clone</a> function instead of this function. Creates a full copy of the geometry, with the vertices overwritten by the given data: this is used when importing COLLADA 1.3 skin controllers. You will need to release the cloned entity. <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_f_c_d_geometry.html#4e3a2616799ec7f94a81a358d2ec1eeb">FCDGeometry::Clone</a>. </dd></dl>
359<dl compact><dt><b>Parameters:</b></dt><dd>
360  <table border="0" cellspacing="2" cellpadding="0">
361    <tr><td valign="top"></td><td valign="top"><em>newPositions</em>&nbsp;</td><td>The list of vertex position that will overwrite the current mesh vertex positions. This list may be empty. </td></tr>
362    <tr><td valign="top"></td><td valign="top"><em>newPositionsStride</em>&nbsp;</td><td>The stride, in bytes, of the newPositions list. For an empty newPositions list, this value is discarded. </td></tr>
363    <tr><td valign="top"></td><td valign="top"><em>newNormals</em>&nbsp;</td><td>The list of vertex normals that will overwrite the current mesh vertex normals. This list may be empty. </td></tr>
364    <tr><td valign="top"></td><td valign="top"><em>newNormalsStride</em>&nbsp;</td><td>The stride, in bytes, of the newNormals list. For an empty newNormals list, this value is discarded. </td></tr>
365  </table>
366</dl>
367<dl compact><dt><b>Returns:</b></dt><dd>The cloned geometry entity. You will need to release this pointer. </dd></dl>
368    </td>
369  </tr>
370</table>
371<a class="anchor" name="25d35d5ef5d330a09fdd61986b6936d5"></a><!-- doxytag: member="FCDGeometryMesh::FindSourceById" ref="25d35d5ef5d330a09fdd61986b6936d5" args="(const string &amp;id)" --><p>
372<table class="mdTable" cellpadding="2" cellspacing="0">
373  <tr>
374    <td class="mdRow">
375      <table cellpadding="0" cellspacing="0" border="0">
376        <tr>
377          <td class="md" nowrap valign="top"><a class="el" href="class_f_c_d_geometry_source.html">FCDGeometrySource</a>* FCDGeometryMesh::FindSourceById           </td>
378          <td class="md" valign="top">(&nbsp;</td>
379          <td class="md" nowrap valign="top">const string &amp;&nbsp;</td>
380          <td class="mdname1" valign="top" nowrap> <em>id</em>          </td>
381          <td class="md" valign="top">&nbsp;)&nbsp;</td>
382          <td class="md" nowrap></td>
383        </tr>
384      </table>
385    </td>
386  </tr>
387</table>
388<table cellspacing="5" cellpadding="0" border="0">
389  <tr>
390    <td>
391      &nbsp;
392    </td>
393    <td>
394
395<p>
396[INTERNAL] Retrieves the data source that matches the given COLLADA id.
397<p>
398<dl compact><dt><b>Parameters:</b></dt><dd>
399  <table border="0" cellspacing="2" cellpadding="0">
400    <tr><td valign="top"></td><td valign="top"><em>id</em>&nbsp;</td><td>A valid COLLADA id. </td></tr>
401  </table>
402</dl>
403<dl compact><dt><b>Returns:</b></dt><dd>The data source. This pointer will be NULL if no matching data source was found. </dd></dl>
404    </td>
405  </tr>
406</table>
407<a class="anchor" name="5c7878893bfad14a59173537e3cfc72c"></a><!-- doxytag: member="FCDGeometryMesh::GetDaeId" ref="5c7878893bfad14a59173537e3cfc72c" args="() const " --><p>
408<table class="mdTable" cellpadding="2" cellspacing="0">
409  <tr>
410    <td class="mdRow">
411      <table cellpadding="0" cellspacing="0" border="0">
412        <tr>
413          <td class="md" nowrap valign="top">const string&amp; FCDGeometryMesh::GetDaeId           </td>
414          <td class="md" valign="top">(&nbsp;</td>
415          <td class="mdname1" valign="top" nowrap>          </td>
416          <td class="md" valign="top">&nbsp;)&nbsp;</td>
417          <td class="md" nowrap> const</td>
418        </tr>
419      </table>
420    </td>
421  </tr>
422</table>
423<table cellspacing="5" cellpadding="0" border="0">
424  <tr>
425    <td>
426      &nbsp;
427    </td>
428    <td>
429
430<p>
431Retrieves the COLLADA id of the mesh.
432<p>
433This is a shortcut to the parent geometry's COLLADA id. <dl compact><dt><b>Returns:</b></dt><dd>The COLLADA id of the mesh. </dd></dl>
434    </td>
435  </tr>
436</table>
437<a class="anchor" name="3c551f539e902eee84aa773a22d83c01"></a><!-- doxytag: member="FCDGeometryMesh::GetFaceCount" ref="3c551f539e902eee84aa773a22d83c01" args="() const " --><p>
438<table class="mdTable" cellpadding="2" cellspacing="0">
439  <tr>
440    <td class="mdRow">
441      <table cellpadding="0" cellspacing="0" border="0">
442        <tr>
443          <td class="md" nowrap valign="top">size_t FCDGeometryMesh::GetFaceCount           </td>
444          <td class="md" valign="top">(&nbsp;</td>
445          <td class="mdname1" valign="top" nowrap>          </td>
446          <td class="md" valign="top">&nbsp;)&nbsp;</td>
447          <td class="md" nowrap> const<code> [inline]</code></td>
448        </tr>
449      </table>
450    </td>
451  </tr>
452</table>
453<table cellspacing="5" cellpadding="0" border="0">
454  <tr>
455    <td>
456      &nbsp;
457    </td>
458    <td>
459
460<p>
461Retrieves the number of faces within the geometric mesh.
462<p>
463<dl compact><dt><b>Returns:</b></dt><dd>The number of faces within the geometric mesh. </dd></dl>
464    </td>
465  </tr>
466</table>
467<a class="anchor" name="86adc3c12dc416d492abd8a28e6a4977"></a><!-- doxytag: member="FCDGeometryMesh::GetFaceVertexCount" ref="86adc3c12dc416d492abd8a28e6a4977" args="() const " --><p>
468<table class="mdTable" cellpadding="2" cellspacing="0">
469  <tr>
470    <td class="mdRow">
471      <table cellpadding="0" cellspacing="0" border="0">
472        <tr>
473          <td class="md" nowrap valign="top">size_t FCDGeometryMesh::GetFaceVertexCount           </td>
474          <td class="md" valign="top">(&nbsp;</td>
475          <td class="mdname1" valign="top" nowrap>          </td>
476          <td class="md" valign="top">&nbsp;)&nbsp;</td>
477          <td class="md" nowrap> const<code> [inline]</code></td>
478        </tr>
479      </table>
480    </td>
481  </tr>
482</table>
483<table cellspacing="5" cellpadding="0" border="0">
484  <tr>
485    <td>
486      &nbsp;
487    </td>
488    <td>
489
490<p>
491Retrieves the total number of per-face vertices in the mesh.
492<p>
493This function makes no assumption about the uniqueness of the per-face vertices. <dl compact><dt><b>Returns:</b></dt><dd>The total number of per-face vertices in the mesh. </dd></dl>
494    </td>
495  </tr>
496</table>
497<a class="anchor" name="e5f4ce74dcda45627dffdbfeb2125979"></a><!-- doxytag: member="FCDGeometryMesh::GetHoleCount" ref="e5f4ce74dcda45627dffdbfeb2125979" args="() const " --><p>
498<table class="mdTable" cellpadding="2" cellspacing="0">
499  <tr>
500    <td class="mdRow">
501      <table cellpadding="0" cellspacing="0" border="0">
502        <tr>
503          <td class="md" nowrap valign="top">size_t FCDGeometryMesh::GetHoleCount           </td>
504          <td class="md" valign="top">(&nbsp;</td>
505          <td class="mdname1" valign="top" nowrap>          </td>
506          <td class="md" valign="top">&nbsp;)&nbsp;</td>
507          <td class="md" nowrap> const<code> [inline]</code></td>
508        </tr>
509      </table>
510    </td>
511  </tr>
512</table>
513<table cellspacing="5" cellpadding="0" border="0">
514  <tr>
515    <td>
516      &nbsp;
517    </td>
518    <td>
519
520<p>
521Retrieves the number of holes within the faces of the geometric mesh.
522<p>
523As one face may contain multiple holes, this value may be larger than the number of faces. <dl compact><dt><b>Returns:</b></dt><dd>The number of holes within the faces of the geometric mesh. </dd></dl>
524    </td>
525  </tr>
526</table>
527<a class="anchor" name="990c21288535abe1d92c89b71ff662e3"></a><!-- doxytag: member="FCDGeometryMesh::GetPolygons" ref="990c21288535abe1d92c89b71ff662e3" args="(size_t index)" --><p>
528<table class="mdTable" cellpadding="2" cellspacing="0">
529  <tr>
530    <td class="mdRow">
531      <table cellpadding="0" cellspacing="0" border="0">
532        <tr>
533          <td class="md" nowrap valign="top"><a class="el" href="class_f_c_d_geometry_polygons.html">FCDGeometryPolygons</a>* FCDGeometryMesh::GetPolygons           </td>
534          <td class="md" valign="top">(&nbsp;</td>
535          <td class="md" nowrap valign="top">size_t&nbsp;</td>
536          <td class="mdname1" valign="top" nowrap> <em>index</em>          </td>
537          <td class="md" valign="top">&nbsp;)&nbsp;</td>
538          <td class="md" nowrap><code> [inline]</code></td>
539        </tr>
540      </table>
541    </td>
542  </tr>
543</table>
544<table cellspacing="5" cellpadding="0" border="0">
545  <tr>
546    <td>
547      &nbsp;
548    </td>
549    <td>
550
551<p>
552Retrieves a specific polygon group.
553<p>
554Each polygon group is represented within a <a class="el" href="class_f_c_d_geometry_polygons.html">FCDGeometryPolygons</a> object. An independent polygon group is usually created to assign a different material to different parts of the mesh or to assign partial texture coordinates and texture tangents to different parts of the mesh. <dl compact><dt><b>Parameters:</b></dt><dd>
555  <table border="0" cellspacing="2" cellpadding="0">
556    <tr><td valign="top"></td><td valign="top"><em>index</em>&nbsp;</td><td>The index of the polygon group. This index should be less than the number of independent polygon groups returned by the GetPolygonsCount function. </td></tr>
557  </table>
558</dl>
559<dl compact><dt><b>Returns:</b></dt><dd>The polygon group. This pointer will be NULL if the index is out-of-bounds. </dd></dl>
560    </td>
561  </tr>
562</table>
563<a class="anchor" name="4084371b8ae62cd07762775f81f9f613"></a><!-- doxytag: member="FCDGeometryMesh::GetPolygonsCount" ref="4084371b8ae62cd07762775f81f9f613" args="() const " --><p>
564<table class="mdTable" cellpadding="2" cellspacing="0">
565  <tr>
566    <td class="mdRow">
567      <table cellpadding="0" cellspacing="0" border="0">
568        <tr>
569          <td class="md" nowrap valign="top">size_t FCDGeometryMesh::GetPolygonsCount           </td>
570          <td class="md" valign="top">(&nbsp;</td>
571          <td class="mdname1" valign="top" nowrap>          </td>
572          <td class="md" valign="top">&nbsp;)&nbsp;</td>
573          <td class="md" nowrap> const<code> [inline]</code></td>
574        </tr>
575      </table>
576    </td>
577  </tr>
578</table>
579<table cellspacing="5" cellpadding="0" border="0">
580  <tr>
581    <td>
582      &nbsp;
583    </td>
584    <td>
585
586<p>
587Retrieves the number of independent polygon groups.
588<p>
589Each polygon group is represented within a <a class="el" href="class_f_c_d_geometry_polygons.html">FCDGeometryPolygons</a> object. An independent polygon group is usually created to assign a different material to different parts of the mesh or to assign partial texture coordinates and texture tangents to different parts of the mesh. <dl compact><dt><b>Returns:</b></dt><dd>The number of independent polygon groups. </dd></dl>
590    </td>
591  </tr>
592</table>
593<a class="anchor" name="85bfd86c44d637d2fc61cceb21e915c7"></a><!-- doxytag: member="FCDGeometryMesh::GetPositionSource" ref="85bfd86c44d637d2fc61cceb21e915c7" args="()" --><p>
594<table class="mdTable" cellpadding="2" cellspacing="0">
595  <tr>
596    <td class="mdRow">
597      <table cellpadding="0" cellspacing="0" border="0">
598        <tr>
599          <td class="md" nowrap valign="top"><a class="el" href="class_f_c_d_geometry_source.html">FCDGeometrySource</a>* FCDGeometryMesh::GetPositionSource           </td>
600          <td class="md" valign="top">(&nbsp;</td>
601          <td class="mdname1" valign="top" nowrap>          </td>
602          <td class="md" valign="top">&nbsp;)&nbsp;</td>
603          <td class="md" nowrap></td>
604        </tr>
605      </table>
606    </td>
607  </tr>
608</table>
609<table cellspacing="5" cellpadding="0" border="0">
610  <tr>
611    <td>
612      &nbsp;
613    </td>
614    <td>
615
616<p>
617Retrieves the per-vertex data that specifically contains the vertex positions.
618<p>
619If there are more than one per-vertex data source that contains vertex positions, the first one is returned. <dl compact><dt><b>Returns:</b></dt><dd>A per-vertex data source that contains vertex positions. This pointer will be NULL in the unlikely possibility that there are no per-vertex data source that contains vertex positions. </dd></dl>
620    </td>
621  </tr>
622</table>
623<a class="anchor" name="cf9352020a124bf2ebb371dd39e49ec6"></a><!-- doxytag: member="FCDGeometryMesh::GetSource" ref="cf9352020a124bf2ebb371dd39e49ec6" args="(size_t index)" --><p>
624<table class="mdTable" cellpadding="2" cellspacing="0">
625  <tr>
626    <td class="mdRow">
627      <table cellpadding="0" cellspacing="0" border="0">
628        <tr>
629          <td class="md" nowrap valign="top"><a class="el" href="class_f_c_d_geometry_source.html">FCDGeometrySource</a>* FCDGeometryMesh::GetSource           </td>
630          <td class="md" valign="top">(&nbsp;</td>
631          <td class="md" nowrap valign="top">size_t&nbsp;</td>
632          <td class="mdname1" valign="top" nowrap> <em>index</em>          </td>
633          <td class="md" valign="top">&nbsp;)&nbsp;</td>
634          <td class="md" nowrap><code> [inline]</code></td>
635        </tr>
636      </table>
637    </td>
638  </tr>
639</table>
640<table cellspacing="5" cellpadding="0" border="0">
641  <tr>
642    <td>
643      &nbsp;
644    </td>
645    <td>
646
647<p>
648Retrieves a specific data source.
649<p>
650<dl compact><dt><b>Parameters:</b></dt><dd>
651  <table border="0" cellspacing="2" cellpadding="0">
652    <tr><td valign="top"></td><td valign="top"><em>index</em>&nbsp;</td><td>The index of the data source. This index should be less than the number of data sources returns by the GetSourceCount function. </td></tr>
653  </table>
654</dl>
655<dl compact><dt><b>Returns:</b></dt><dd>The data source. This pointer will be NULL if the index is out-of-bounds. </dd></dl>
656    </td>
657  </tr>
658</table>
659<a class="anchor" name="7581dd3fbd707e8e19832a7f7c57de26"></a><!-- doxytag: member="FCDGeometryMesh::GetSourceCount" ref="7581dd3fbd707e8e19832a7f7c57de26" args="() const " --><p>
660<table class="mdTable" cellpadding="2" cellspacing="0">
661  <tr>
662    <td class="mdRow">
663      <table cellpadding="0" cellspacing="0" border="0">
664        <tr>
665          <td class="md" nowrap valign="top">size_t FCDGeometryMesh::GetSourceCount           </td>
666          <td class="md" valign="top">(&nbsp;</td>
667          <td class="mdname1" valign="top" nowrap>          </td>
668          <td class="md" valign="top">&nbsp;)&nbsp;</td>
669          <td class="md" nowrap> const<code> [inline]</code></td>
670        </tr>
671      </table>
672    </td>
673  </tr>
674</table>
675<table cellspacing="5" cellpadding="0" border="0">
676  <tr>
677    <td>
678      &nbsp;
679    </td>
680    <td>
681
682<p>
683Retrieves the number of data sources contained within this geometric mesh.
684<p>
685<dl compact><dt><b>Returns:</b></dt><dd>The number of data sources within the mesh. </dd></dl>
686    </td>
687  </tr>
688</table>
689<a class="anchor" name="728dd8d9dc103b9c9a4013dd882344ee"></a><!-- doxytag: member="FCDGeometryMesh::GetVertexSource" ref="728dd8d9dc103b9c9a4013dd882344ee" args="(size_t index)" --><p>
690<table class="mdTable" cellpadding="2" cellspacing="0">
691  <tr>
692    <td class="mdRow">
693      <table cellpadding="0" cellspacing="0" border="0">
694        <tr>
695          <td class="md" nowrap valign="top"><a class="el" href="class_f_c_d_geometry_source.html">FCDGeometrySource</a>* FCDGeometryMesh::GetVertexSource           </td>
696          <td class="md" valign="top">(&nbsp;</td>
697          <td class="md" nowrap valign="top">size_t&nbsp;</td>
698          <td class="mdname1" valign="top" nowrap> <em>index</em>          </td>
699          <td class="md" valign="top">&nbsp;)&nbsp;</td>
700          <td class="md" nowrap><code> [inline]</code></td>
701        </tr>
702      </table>
703    </td>
704  </tr>
705</table>
706<table cellspacing="5" cellpadding="0" border="0">
707  <tr>
708    <td>
709      &nbsp;
710    </td>
711    <td>
712
713<p>
714Retrieves a specific per-vertex data source.
715<p>
716All the per-vertex data sources are also included in the list of data sources. <dl compact><dt><b>Parameters:</b></dt><dd>
717  <table border="0" cellspacing="2" cellpadding="0">
718    <tr><td valign="top"></td><td valign="top"><em>index</em>&nbsp;</td><td>The index of the per-vertex data source. This index should be less than the number of per-vertex data sources returns by the GetVertexSourceCount function. </td></tr>
719  </table>
720</dl>
721<dl compact><dt><b>Returns:</b></dt><dd>The per-vertex data source. This pointer will be NULL if the index is out-of-bounds. </dd></dl>
722    </td>
723  </tr>
724</table>
725<a class="anchor" name="5c0629b519bf32d5f4f172e3b0502de9"></a><!-- doxytag: member="FCDGeometryMesh::GetVertexSourceCount" ref="5c0629b519bf32d5f4f172e3b0502de9" args="() const " --><p>
726<table class="mdTable" cellpadding="2" cellspacing="0">
727  <tr>
728    <td class="mdRow">
729      <table cellpadding="0" cellspacing="0" border="0">
730        <tr>
731          <td class="md" nowrap valign="top">size_t FCDGeometryMesh::GetVertexSourceCount           </td>
732          <td class="md" valign="top">(&nbsp;</td>
733          <td class="mdname1" valign="top" nowrap>          </td>
734          <td class="md" valign="top">&nbsp;)&nbsp;</td>
735          <td class="md" nowrap> const<code> [inline]</code></td>
736        </tr>
737      </table>
738    </td>
739  </tr>
740</table>
741<table cellspacing="5" cellpadding="0" border="0">
742  <tr>
743    <td>
744      &nbsp;
745    </td>
746    <td>
747
748<p>
749Retrieves the number of per-vertex data sources.
750<p>
751This number should always be lesser or equal to the number of data sources, as each per-vertex data source is also included within the list of data sources. <dl compact><dt><b>Returns:</b></dt><dd>The number of per-vertex data sources. </dd></dl>
752    </td>
753  </tr>
754</table>
755<a class="anchor" name="86e48d859b6756bfa89c928d9a60749d"></a><!-- doxytag: member="FCDGeometryMesh::GetVertexSources" ref="86e48d859b6756bfa89c928d9a60749d" args="()" --><p>
756<table class="mdTable" cellpadding="2" cellspacing="0">
757  <tr>
758    <td class="mdRow">
759      <table cellpadding="0" cellspacing="0" border="0">
760        <tr>
761          <td class="md" nowrap valign="top"><a class="el" href="classvector.html">FCDGeometrySourceList</a>&amp; FCDGeometryMesh::GetVertexSources           </td>
762          <td class="md" valign="top">(&nbsp;</td>
763          <td class="mdname1" valign="top" nowrap>          </td>
764          <td class="md" valign="top">&nbsp;)&nbsp;</td>
765          <td class="md" nowrap><code> [inline]</code></td>
766        </tr>
767      </table>
768    </td>
769  </tr>
770</table>
771<table cellspacing="5" cellpadding="0" border="0">
772  <tr>
773    <td>
774      &nbsp;
775    </td>
776    <td>
777
778<p>
779[INTERNAL] Retrieves the list of per-vertex data sources.
780<p>
781There should usually be one per-vertex data source that contains positions. All the sources within this list are also present within the data source list. <dl compact><dt><b>Returns:</b></dt><dd>The list of per-vertex data sources. </dd></dl>
782    </td>
783  </tr>
784</table>
785<a class="anchor" name="4c85484537b78efa26b75d40fd744a21"></a><!-- doxytag: member="FCDGeometryMesh::IsDoubleSided" ref="4c85484537b78efa26b75d40fd744a21" args="() const " --><p>
786<table class="mdTable" cellpadding="2" cellspacing="0">
787  <tr>
788    <td class="mdRow">
789      <table cellpadding="0" cellspacing="0" border="0">
790        <tr>
791          <td class="md" nowrap valign="top">bool FCDGeometryMesh::IsDoubleSided           </td>
792          <td class="md" valign="top">(&nbsp;</td>
793          <td class="mdname1" valign="top" nowrap>          </td>
794          <td class="md" valign="top">&nbsp;)&nbsp;</td>
795          <td class="md" nowrap> const<code> [inline]</code></td>
796        </tr>
797      </table>
798    </td>
799  </tr>
800</table>
801<table cellspacing="5" cellpadding="0" border="0">
802  <tr>
803    <td>
804      &nbsp;
805    </td>
806    <td>
807
808<p>
809Retrieves whether the mesh should be treated as double-sided.
810<p>
811This flag does not belong to COLLADA but is exported at the geometric-level by ColladaMaya. <dl compact><dt><b>Returns:</b></dt><dd>Whether the mesh is double-sided. </dd></dl>
812    </td>
813  </tr>
814</table>
815<a class="anchor" name="d3ee5f3f3787296164f1cf87ee71bb0e"></a><!-- doxytag: member="FCDGeometryMesh::LoadFromXML" ref="d3ee5f3f3787296164f1cf87ee71bb0e" args="(xmlNode *meshNode)" --><p>
816<table class="mdTable" cellpadding="2" cellspacing="0">
817  <tr>
818    <td class="mdRow">
819      <table cellpadding="0" cellspacing="0" border="0">
820        <tr>
821          <td class="md" nowrap valign="top"><a class="el" href="class_f_u_status.html">FUStatus</a> FCDGeometryMesh::LoadFromXML           </td>
822          <td class="md" valign="top">(&nbsp;</td>
823          <td class="md" nowrap valign="top">xmlNode *&nbsp;</td>
824          <td class="mdname1" valign="top" nowrap> <em>meshNode</em>          </td>
825          <td class="md" valign="top">&nbsp;)&nbsp;</td>
826          <td class="md" nowrap></td>
827        </tr>
828      </table>
829    </td>
830  </tr>
831</table>
832<table cellspacing="5" cellpadding="0" border="0">
833  <tr>
834    <td>
835      &nbsp;
836    </td>
837    <td>
838
839<p>
840[INTERNAL] Reads in the &lt;mesh&gt; element from a given COLLADA XML tree node.
841<p>
842<dl compact><dt><b>Parameters:</b></dt><dd>
843  <table border="0" cellspacing="2" cellpadding="0">
844    <tr><td valign="top"></td><td valign="top"><em>meshNode</em>&nbsp;</td><td>The COLLADA XML tree node. </td></tr>
845  </table>
846</dl>
847<dl compact><dt><b>Returns:</b></dt><dd>The status of the import. If the status is not successful, it may be dangerous to extract information from the geometric mesh. </dd></dl>
848    </td>
849  </tr>
850</table>
851<a class="anchor" name="d5227d055e5a3d1f7f0623724fab2586"></a><!-- doxytag: member="FCDGeometryMesh::Recalculate" ref="d5227d055e5a3d1f7f0623724fab2586" args="()" --><p>
852<table class="mdTable" cellpadding="2" cellspacing="0">
853  <tr>
854    <td class="mdRow">
855      <table cellpadding="0" cellspacing="0" border="0">
856        <tr>
857          <td class="md" nowrap valign="top">void FCDGeometryMesh::Recalculate           </td>
858          <td class="md" valign="top">(&nbsp;</td>
859          <td class="mdname1" valign="top" nowrap>          </td>
860          <td class="md" valign="top">&nbsp;)&nbsp;</td>
861          <td class="md" nowrap></td>
862        </tr>
863      </table>
864    </td>
865  </tr>
866</table>
867<table cellspacing="5" cellpadding="0" border="0">
868  <tr>
869    <td>
870      &nbsp;
871    </td>
872    <td>
873
874<p>
875[INTERNAL] Forces the recalculation of the hole count, vertex count, face-vertex counts and their offsets.
876<p>
877Since the counts and offsets are buffered at the geometric mesh object level, this function allows the polygon groups to force the recalculation of the buffered values, when they are modified.     </td>
878  </tr>
879</table>
880<a class="anchor" name="b62632ee269cb4485602c93d8604ea15"></a><!-- doxytag: member="FCDGeometryMesh::Triangulate" ref="b62632ee269cb4485602c93d8604ea15" args="()" --><p>
881<table class="mdTable" cellpadding="2" cellspacing="0">
882  <tr>
883    <td class="mdRow">
884      <table cellpadding="0" cellspacing="0" border="0">
885        <tr>
886          <td class="md" nowrap valign="top">void FCDGeometryMesh::Triangulate           </td>
887          <td class="md" valign="top">(&nbsp;</td>
888          <td class="mdname1" valign="top" nowrap>          </td>
889          <td class="md" valign="top">&nbsp;)&nbsp;</td>
890          <td class="md" nowrap></td>
891        </tr>
892      </table>
893    </td>
894  </tr>
895</table>
896<table cellspacing="5" cellpadding="0" border="0">
897  <tr>
898    <td>
899      &nbsp;
900    </td>
901    <td>
902
903<p>
904Triangulates the mesh.
905<p>
906A simple fanning techique is currently used: holes will not be triangulated correctly.     </td>
907  </tr>
908</table>
909<a class="anchor" name="5f0a27e7b03642887cbb02f3f92bc814"></a><!-- doxytag: member="FCDGeometryMesh::WriteToXML" ref="5f0a27e7b03642887cbb02f3f92bc814" args="(xmlNode *parentNode) const " --><p>
910<table class="mdTable" cellpadding="2" cellspacing="0">
911  <tr>
912    <td class="mdRow">
913      <table cellpadding="0" cellspacing="0" border="0">
914        <tr>
915          <td class="md" nowrap valign="top">xmlNode* FCDGeometryMesh::WriteToXML           </td>
916          <td class="md" valign="top">(&nbsp;</td>
917          <td class="md" nowrap valign="top">xmlNode *&nbsp;</td>
918          <td class="mdname1" valign="top" nowrap> <em>parentNode</em>          </td>
919          <td class="md" valign="top">&nbsp;)&nbsp;</td>
920          <td class="md" nowrap> const</td>
921        </tr>
922      </table>
923    </td>
924  </tr>
925</table>
926<table cellspacing="5" cellpadding="0" border="0">
927  <tr>
928    <td>
929      &nbsp;
930    </td>
931    <td>
932
933<p>
934[INTERNAL] Writes out the &lt;mesh&gt; element to the given COLLADA XML tree node.
935<p>
936<dl compact><dt><b>Parameters:</b></dt><dd>
937  <table border="0" cellspacing="2" cellpadding="0">
938    <tr><td valign="top"></td><td valign="top"><em>parentNode</em>&nbsp;</td><td>The COLLADA XML parent node in which to insert the geometric mesh. </td></tr>
939  </table>
940</dl>
941<dl compact><dt><b>Returns:</b></dt><dd>The created &lt;mesh&gt; element XML tree node. </dd></dl>
942    </td>
943  </tr>
944</table>
945<hr>The documentation for this class was generated from the following file:<ul>
946<li>FCDocument/<a class="el" href="_f_c_d_geometry_mesh_8h-source.html">FCDGeometryMesh.h</a></ul>
947<hr size="1"><address style="align: right;"><small>Generated on Fri May 12 16:44:43 2006 for FCollada by&nbsp;
948<a href="http://www.doxygen.org/index.html">
949<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6-NO </small></address>
950</body>
951</html>
Note: See TracBrowser for help on using the repository browser.