📄 classvtmesh.html
字号:
<td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Add a single line primitive to a mesh. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>p0,p1</em> </td><td>The indices of the two vertices of the line. </td></tr> </table></dl> </td> </tr></table><a class="anchor" name="286ffebb8327a3718851965483fa5895"></a><!-- doxytag: member="vtMesh::AddQuad" ref="286ffebb8327a3718851965483fa5895" args="(int p0, int p1, int p2, int p3)" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void vtMesh::AddQuad </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname" nowrap> <em>p0</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>p1</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>p2</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>p3</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Add a triangle. p0, p1, p2 are the indices of the vertices of the triangle. <p>Implements <a class="el" href="classvtMeshBase.html">vtMeshBase</a>. </td> </tr></table><a class="anchor" name="565876a55a0d9c43b6db7d13547e127d"></a><!-- doxytag: member="vtMesh::AddStrip" ref="565876a55a0d9c43b6db7d13547e127d" args="(int iNVerts, unsigned short *pIndices)" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void vtMesh::AddStrip </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname" nowrap> <em>iNVerts</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>unsigned short * </td> <td class="mdname" nowrap> <em>pIndices</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Adds an indexed triangle strip to the mesh.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>iNVerts</em> </td><td>The number of vertices in the strip. </td></tr> <tr><td valign="top"></td><td valign="top"><em>pIndices</em> </td><td>An array of the indices of the vertices in the strip. </td></tr> </table></dl><p>Implements <a class="el" href="classvtMeshBase.html">vtMeshBase</a>. </td> </tr></table><a class="anchor" name="ff3ef5ca4e2889d2d9071d82bf1a9410"></a><!-- doxytag: member="vtMesh::AddTri" ref="ff3ef5ca4e2889d2d9071d82bf1a9410" args="(int p0, int p1, int p2)" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void vtMesh::AddTri </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname" nowrap> <em>p0</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>p1</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>p2</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Add a triangle. p0, p1, p2 are the indices of the vertices of the triangle. <p>Implements <a class="el" href="classvtMeshBase.html">vtMeshBase</a>. </td> </tr></table><a class="anchor" name="a85597c8f0f4d3158067c2392685bafe"></a><!-- doxytag: member="vtMesh::AllowOptimize" ref="a85597c8f0f4d3158067c2392685bafe" args="(bool bAllow)" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void vtMesh::AllowOptimize </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">bool </td> <td class="mdname1" valign="top" nowrap> <em>bAllow</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Set whether to allow rendering optimization of this mesh. With OpenGL, this optimization is called a "display list", which increases the speed of rendering by creating a special representation of the mesh the first time it is drawn. The tradeoff is that subsequent changes to the mesh are not applied unless you call <a class="el" href="classvtMesh.html#3ac71e2f3e833aaee394fb1889692ba9">ReOptimize()</a>.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>bAllow</em> </td><td>True to allow optimization. The default is true. </td></tr> </table></dl> </td> </tr></table><a class="anchor" name="3fdf2d6cd1b239b9a8379ee2377b1ba8"></a><!-- doxytag: member="vtMesh::GetBoundBox" ref="3fdf2d6cd1b239b9a8379ee2377b1ba8" args="(FBox3 &box) const " --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void vtMesh::GetBoundBox </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="elRef" doxygen="vtdata.tag:../vtdata/" href="../vtdata/classFBox3.html">FBox3</a> & </td> <td class="mdname1" valign="top" nowrap> <em>box</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Computes the bounding box of the mesh, based on the extent of its vertices. Result is placed in the 'box' parameter. If there are no vertices, then 'box' is unchanged. <p>Reimplemented from <a class="el" href="classvtMeshBase.html#3fdf2d6cd1b239b9a8379ee2377b1ba8">vtMeshBase</a>. </td> </tr></table><a class="anchor" name="c0c849d758fe37ac49e0c14f38e3c227"></a><!-- doxytag: member="vtMesh::GetVtxColor" ref="c0c849d758fe37ac49e0c14f38e3c227" args="(unsigned int i) const " --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="elRef" doxygen="vtdata.tag:../vtdata/" href="../vtdata/classRGBAf.html">RGBAf</a> vtMesh::GetVtxColor </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">unsigned int </td> <td class="mdname1" valign="top" nowrap> <em>i</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Get the color of a vertex. <p>Implements <a class="el" href="classvtMeshBase.html">vtMeshBase</a>. </td> </tr></table><a class="anchor" name="b1db31bcba703078c95c5cc5e8e5742b"></a><!-- doxytag: member="vtMesh::GetVtxNormal" ref="b1db31bcba703078c95c5cc5e8e5742b" args="(unsigned int i) const " --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="elRef" doxygen="vtdata.tag:../vtdata/" href="../vtdata/classFPoint3.html">FPoint3</a> vtMesh::GetVtxNormal </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">unsigned int </td> <td class="mdname1" valign="top" nowrap> <em>i</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Get the normal of a vertex. <p>Implements <a class="el" href="classvtMeshBase.html">vtMeshBase</a>. </td> </tr></table><a class="anchor" name="d69c93568d7557c512a1e2485cd8512b"></a><!-- doxytag: member="vtMesh::GetVtxPos" ref="d69c93568d7557c512a1e2485cd8512b" args="(unsigned int i) const " --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="elRef" doxygen="vtdata.tag:../vtdata/" href="../vtdata/classFPoint3.html">FPoint3</a> vtMesh::GetVtxPos </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">unsigned int </td> <td class="mdname1" valign="top" nowrap> <em>i</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -