Files
recastnavigation/structrcPolyMeshDetail.html

323 lines
23 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Recast Navigation: rcPolyMeshDetail Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
<link href="doxygen-awesome-sidebar-only.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Recast Navigation
</div>
<div id="projectbrief">Navigation-mesh Toolset for Games</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('structrcPolyMeshDetail.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="structrcPolyMeshDetail-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">rcPolyMeshDetail Struct Reference<div class="ingroups"><a class="el" href="group__recast.html">Recast</a></div></div> </div>
</div><!--header-->
<div class="contents">
<p>Contains triangle meshes that represent detailed height data associated with the polygons in its associated polygon mesh object.
<a href="structrcPolyMeshDetail.html#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="Recast_8h_source.html">Recast.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ac19c2eb106a9a9bd40e15f16fd847c84"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structrcPolyMeshDetail.html#ac19c2eb106a9a9bd40e15f16fd847c84">rcPolyMeshDetail</a> ()</td></tr>
<tr class="separator:ac19c2eb106a9a9bd40e15f16fd847c84"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a39a0a4bdfaf81025dfd5c6efc17a9f02"><td class="memItemLeft" align="right" valign="top">unsigned int *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structrcPolyMeshDetail.html#a39a0a4bdfaf81025dfd5c6efc17a9f02">meshes</a></td></tr>
<tr class="memdesc:a39a0a4bdfaf81025dfd5c6efc17a9f02"><td class="mdescLeft">&#160;</td><td class="mdescRight">The sub-mesh data. [Size: 4*<a class="el" href="structrcPolyMeshDetail.html#afbe7e21cf0f9dca429c6762f457f61b6" title="The number of sub-meshes defined by meshes.">nmeshes</a>]. <a href="structrcPolyMeshDetail.html#a39a0a4bdfaf81025dfd5c6efc17a9f02">More...</a><br /></td></tr>
<tr class="separator:a39a0a4bdfaf81025dfd5c6efc17a9f02"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14af552d094aa71551d296f278861806"><td class="memItemLeft" align="right" valign="top">float *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structrcPolyMeshDetail.html#a14af552d094aa71551d296f278861806">verts</a></td></tr>
<tr class="memdesc:a14af552d094aa71551d296f278861806"><td class="mdescLeft">&#160;</td><td class="mdescRight">The mesh vertices. [Size: 3*<a class="el" href="structrcPolyMeshDetail.html#a5424a45b24c43d49d93d89e89f11b59f" title="The number of vertices in verts.">nverts</a>]. <a href="structrcPolyMeshDetail.html#a14af552d094aa71551d296f278861806">More...</a><br /></td></tr>
<tr class="separator:a14af552d094aa71551d296f278861806"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a05e186a92fad184179c726debb033979"><td class="memItemLeft" align="right" valign="top">unsigned char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structrcPolyMeshDetail.html#a05e186a92fad184179c726debb033979">tris</a></td></tr>
<tr class="memdesc:a05e186a92fad184179c726debb033979"><td class="mdescLeft">&#160;</td><td class="mdescRight">The mesh triangles. [Size: 4*<a class="el" href="structrcPolyMeshDetail.html#a80041af5ae32e618d4980cd81a08c9e3" title="The number of triangles in tris.">ntris</a>]. <a href="structrcPolyMeshDetail.html#a05e186a92fad184179c726debb033979">More...</a><br /></td></tr>
<tr class="separator:a05e186a92fad184179c726debb033979"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afbe7e21cf0f9dca429c6762f457f61b6"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structrcPolyMeshDetail.html#afbe7e21cf0f9dca429c6762f457f61b6">nmeshes</a></td></tr>
<tr class="memdesc:afbe7e21cf0f9dca429c6762f457f61b6"><td class="mdescLeft">&#160;</td><td class="mdescRight">The number of sub-meshes defined by <a class="el" href="structrcPolyMeshDetail.html#a39a0a4bdfaf81025dfd5c6efc17a9f02" title="The sub-mesh data. [Size: 4*nmeshes].">meshes</a>. <a href="structrcPolyMeshDetail.html#afbe7e21cf0f9dca429c6762f457f61b6">More...</a><br /></td></tr>
<tr class="separator:afbe7e21cf0f9dca429c6762f457f61b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5424a45b24c43d49d93d89e89f11b59f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structrcPolyMeshDetail.html#a5424a45b24c43d49d93d89e89f11b59f">nverts</a></td></tr>
<tr class="memdesc:a5424a45b24c43d49d93d89e89f11b59f"><td class="mdescLeft">&#160;</td><td class="mdescRight">The number of vertices in <a class="el" href="structrcPolyMeshDetail.html#a14af552d094aa71551d296f278861806" title="The mesh vertices. [Size: 3*nverts].">verts</a>. <a href="structrcPolyMeshDetail.html#a5424a45b24c43d49d93d89e89f11b59f">More...</a><br /></td></tr>
<tr class="separator:a5424a45b24c43d49d93d89e89f11b59f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a80041af5ae32e618d4980cd81a08c9e3"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structrcPolyMeshDetail.html#a80041af5ae32e618d4980cd81a08c9e3">ntris</a></td></tr>
<tr class="memdesc:a80041af5ae32e618d4980cd81a08c9e3"><td class="mdescLeft">&#160;</td><td class="mdescRight">The number of triangles in <a class="el" href="structrcPolyMeshDetail.html#a05e186a92fad184179c726debb033979" title="The mesh triangles. [Size: 4*ntris].">tris</a>. <a href="structrcPolyMeshDetail.html#a80041af5ae32e618d4980cd81a08c9e3">More...</a><br /></td></tr>
<tr class="separator:a80041af5ae32e618d4980cd81a08c9e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Description</h2>
<div class="textblock"><p>Contains triangle meshes that represent detailed height data associated with the polygons in its associated polygon mesh object. </p>
<dl class="section user"><dt></dt><dd></dd></dl>
<p>The detail mesh is made up of triangle sub-meshes that provide extra height detail for each polygon in its assoicated polygon mesh.</p>
<p>The standard process for building a detail mesh is to allocate it using <a class="el" href="group__recast.html#ga617834c1759867250e21569c204f1410" title="Allocates a detail mesh object using the Recast allocator.">rcAllocPolyMeshDetail</a>, then build it using <a class="el" href="group__recast.html#ga27bbc4ef9f8c09b68ec63ebe908521a2" title="Builds a detail mesh from the provided polygon mesh.">rcBuildPolyMeshDetail</a>.</p>
<p>See the individual field definitions for details realted to the structure the mesh.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__recast.html#ga617834c1759867250e21569c204f1410" title="Allocates a detail mesh object using the Recast allocator.">rcAllocPolyMeshDetail</a>, <a class="el" href="group__recast.html#ga3efa77f1a8305250471c2ac09672d9ae" title="Frees the specified detail mesh using the Recast allocator.">rcFreePolyMeshDetail</a>, <a class="el" href="group__recast.html#ga27bbc4ef9f8c09b68ec63ebe908521a2" title="Builds a detail mesh from the provided polygon mesh.">rcBuildPolyMeshDetail</a>, <a class="el" href="structrcPolyMesh.html" title="Represents a polygon mesh suitable for use in building a navigation mesh.">rcPolyMesh</a> </dd></dl>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ac19c2eb106a9a9bd40e15f16fd847c84"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac19c2eb106a9a9bd40e15f16fd847c84">&#9670;&nbsp;</a></span>rcPolyMeshDetail()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">rcPolyMeshDetail::rcPolyMeshDetail </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a39a0a4bdfaf81025dfd5c6efc17a9f02"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a39a0a4bdfaf81025dfd5c6efc17a9f02">&#9670;&nbsp;</a></span>meshes</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">rcPolyMeshDetail::meshes</td>
</tr>
</table>
</div><div class="memdoc">
<p>The sub-mesh data. [Size: 4*<a class="el" href="structrcPolyMeshDetail.html#afbe7e21cf0f9dca429c6762f457f61b6" title="The number of sub-meshes defined by meshes.">nmeshes</a>]. </p>
<dl class="section user"><dt></dt><dd></dd></dl>
<p>[(baseVertIndex, vertCount, baseTriIndex, triCount) * <a class="el" href="structrcPolyMeshDetail.html#afbe7e21cf0f9dca429c6762f457f61b6" title="The number of sub-meshes defined by meshes.">nmeshes</a>]</p>
<p>Maximum number of vertices per sub-mesh: 127<br />
Maximum number of triangles per sub-mesh: 255</p>
<p>The sub-meshes are stored in the same order as the polygons from the <a class="el" href="structrcPolyMesh.html" title="Represents a polygon mesh suitable for use in building a navigation mesh.">rcPolyMesh</a> they represent. E.g. <a class="el" href="structrcPolyMeshDetail.html" title="Contains triangle meshes that represent detailed height data associated with the polygons in its asso...">rcPolyMeshDetail</a> sub-mesh 5 is associated with <a class="el" href="structrcPolyMesh.html" title="Represents a polygon mesh suitable for use in building a navigation mesh.">rcPolyMesh</a> polygon 5.</p>
<p>Example of iterating the triangles in a sub-mesh.</p>
<div class="fragment"><div class="line"><span class="comment">// Where dmesh is a reference to a rcPolyMeshDetail object.</span></div>
<div class="line"> </div>
<div class="line"><span class="comment">// Iterate the sub-meshes. (One for each source polygon.)</span></div>
<div class="line"><span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; dmesh.nmeshes; ++i)</div>
<div class="line">{</div>
<div class="line"> <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>* meshDef = &amp;dmesh.meshes[i*4];</div>
<div class="line"> <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> baseVerts = meshDef[0];</div>
<div class="line"> <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> baseTri = meshDef[2];</div>
<div class="line"> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="structrcPolyMeshDetail.html#a80041af5ae32e618d4980cd81a08c9e3">ntris</a> = (int)meshDef[3]; </div>
<div class="line"> </div>
<div class="line"> <span class="keyword">const</span> <span class="keywordtype">float</span>* <a class="code" href="structrcPolyMeshDetail.html#a14af552d094aa71551d296f278861806">verts</a> = &amp;dmesh.verts[baseVerts*3];</div>
<div class="line"> <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* <a class="code" href="structrcPolyMeshDetail.html#a05e186a92fad184179c726debb033979">tris</a> = &amp;dmesh.tris[baseTri*4];</div>
<div class="line"> </div>
<div class="line"> <span class="comment">// Iterate the sub-mesh&#39;s triangles.</span></div>
<div class="line"> <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j = 0; j &lt; <a class="code" href="structrcPolyMeshDetail.html#a80041af5ae32e618d4980cd81a08c9e3">ntris</a>; ++j)</div>
<div class="line"> {</div>
<div class="line"> <span class="keyword">const</span> <span class="keywordtype">float</span> x = <a class="code" href="structrcPolyMeshDetail.html#a14af552d094aa71551d296f278861806">verts</a>[<a class="code" href="structrcPolyMeshDetail.html#a05e186a92fad184179c726debb033979">tris</a>[j*4+0]*3];</div>
<div class="line"> <span class="keyword">const</span> <span class="keywordtype">float</span> y = <a class="code" href="structrcPolyMeshDetail.html#a14af552d094aa71551d296f278861806">verts</a>[<a class="code" href="structrcPolyMeshDetail.html#a05e186a92fad184179c726debb033979">tris</a>[j*4+1]*3];</div>
<div class="line"> <span class="keyword">const</span> <span class="keywordtype">float</span> z = <a class="code" href="structrcPolyMeshDetail.html#a14af552d094aa71551d296f278861806">verts</a>[<a class="code" href="structrcPolyMeshDetail.html#a05e186a92fad184179c726debb033979">tris</a>[j*4+2]*3];</div>
<div class="line"> <span class="comment">// Do something with the vertex.</span></div>
<div class="line"> }</div>
<div class="line">}</div>
<div class="ttc" id="astructrcPolyMeshDetail_html_a05e186a92fad184179c726debb033979"><div class="ttname"><a href="structrcPolyMeshDetail.html#a05e186a92fad184179c726debb033979">rcPolyMeshDetail::tris</a></div><div class="ttdeci">unsigned char * tris</div><div class="ttdoc">The mesh triangles. [Size: 4*ntris].</div><div class="ttdef"><b>Definition:</b> Recast.h:492</div></div>
<div class="ttc" id="astructrcPolyMeshDetail_html_a14af552d094aa71551d296f278861806"><div class="ttname"><a href="structrcPolyMeshDetail.html#a14af552d094aa71551d296f278861806">rcPolyMeshDetail::verts</a></div><div class="ttdeci">float * verts</div><div class="ttdoc">The mesh vertices. [Size: 3*nverts].</div><div class="ttdef"><b>Definition:</b> Recast.h:491</div></div>
<div class="ttc" id="astructrcPolyMeshDetail_html_a80041af5ae32e618d4980cd81a08c9e3"><div class="ttname"><a href="structrcPolyMeshDetail.html#a80041af5ae32e618d4980cd81a08c9e3">rcPolyMeshDetail::ntris</a></div><div class="ttdeci">int ntris</div><div class="ttdoc">The number of triangles in tris.</div><div class="ttdef"><b>Definition:</b> Recast.h:495</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="afbe7e21cf0f9dca429c6762f457f61b6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afbe7e21cf0f9dca429c6762f457f61b6">&#9670;&nbsp;</a></span>nmeshes</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int rcPolyMeshDetail::nmeshes</td>
</tr>
</table>
</div><div class="memdoc">
<p>The number of sub-meshes defined by <a class="el" href="structrcPolyMeshDetail.html#a39a0a4bdfaf81025dfd5c6efc17a9f02" title="The sub-mesh data. [Size: 4*nmeshes].">meshes</a>. </p>
</div>
</div>
<a id="a80041af5ae32e618d4980cd81a08c9e3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a80041af5ae32e618d4980cd81a08c9e3">&#9670;&nbsp;</a></span>ntris</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int rcPolyMeshDetail::ntris</td>
</tr>
</table>
</div><div class="memdoc">
<p>The number of triangles in <a class="el" href="structrcPolyMeshDetail.html#a05e186a92fad184179c726debb033979" title="The mesh triangles. [Size: 4*ntris].">tris</a>. </p>
</div>
</div>
<a id="a5424a45b24c43d49d93d89e89f11b59f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5424a45b24c43d49d93d89e89f11b59f">&#9670;&nbsp;</a></span>nverts</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int rcPolyMeshDetail::nverts</td>
</tr>
</table>
</div><div class="memdoc">
<p>The number of vertices in <a class="el" href="structrcPolyMeshDetail.html#a14af552d094aa71551d296f278861806" title="The mesh vertices. [Size: 3*nverts].">verts</a>. </p>
</div>
</div>
<a id="a05e186a92fad184179c726debb033979"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a05e186a92fad184179c726debb033979">&#9670;&nbsp;</a></span>tris</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">rcPolyMeshDetail::tris</td>
</tr>
</table>
</div><div class="memdoc">
<p>The mesh triangles. [Size: 4*<a class="el" href="structrcPolyMeshDetail.html#a80041af5ae32e618d4980cd81a08c9e3" title="The number of triangles in tris.">ntris</a>]. </p>
<dl class="section user"><dt></dt><dd></dd></dl>
<p>[(vertIndexA, vertIndexB, vertIndexC, flags) * <a class="el" href="structrcPolyMeshDetail.html#a80041af5ae32e618d4980cd81a08c9e3" title="The number of triangles in tris.">ntris</a>]</p>
<p>The triangles are grouped by sub-mesh.</p>
<p><b>Vertex Indices</b></p>
<p>The vertex indices in the triangle array are local to the sub-mesh, not global. To translate into an global index in the vertices array, the values must be offset by the sub-mesh's base vertex index.</p>
<p>Example: If the baseVertexIndex for the sub-mesh is 5 and the triangle entry is (4, 8, 7, 0), then the actual indices for the vertices are (4 + 5, 8 + 5, 7 + 5).</p>
<p><b>Flags</b> </p>
<p>The flags entry indicates which edges are internal and which are external to the sub-mesh. Internal edges connect to other triangles within the same sub-mesh. External edges represent portals to other sub-meshes or the null region.</p>
<p>Each flag is stored in a 2-bit position. Where position 0 is the lowest 2-bits and position 4 is the highest 2-bits:</p>
<p><code> Position 0: Edge AB (&gt;&gt; 0)<br />
Position 1: Edge BC (&gt;&gt; 2)<br />
Position 2: Edge CA (&gt;&gt; 4)<br />
Position 4: Unused<br />
</code></p>
<p>Testing can be performed as follows:</p>
<div class="fragment"><div class="line"><span class="keywordflow">if</span> (((flags &gt;&gt; 2) &amp; 0x3) != 0)</div>
<div class="line">{</div>
<div class="line"> <span class="comment">// Edge BC is an external edge.</span></div>
<div class="line">}</div>
</div><!-- fragment -->
</div>
</div>
<a id="a14af552d094aa71551d296f278861806"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a14af552d094aa71551d296f278861806">&#9670;&nbsp;</a></span>verts</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">rcPolyMeshDetail::verts</td>
</tr>
</table>
</div><div class="memdoc">
<p>The mesh vertices. [Size: 3*<a class="el" href="structrcPolyMeshDetail.html#a5424a45b24c43d49d93d89e89f11b59f" title="The number of vertices in verts.">nverts</a>]. </p>
<dl class="section user"><dt></dt><dd></dd></dl>
<p>[(x, y, z) * <a class="el" href="structrcPolyMeshDetail.html#a5424a45b24c43d49d93d89e89f11b59f" title="The number of vertices in verts.">nverts</a>]</p>
<p>The vertices are grouped by sub-mesh and will contain duplicates since each sub-mesh is independently defined.</p>
<p>The first group of vertices for each sub-mesh are in the same order as the vertices for the sub-mesh's associated PolyMesh polygon. These vertices are followed by any additional detail vertices. So it the associated polygon has 5 vertices, the sub-mesh will have a minimum of 5 vertices and the first 5 vertices will be equivalent to the 5 polygon vertices. </p>
</div>
</div>
<hr/>The documentation for this struct was generated from the following files:<ul>
<li><a class="el" href="Recast_8h_source.html">Recast.h</a></li>
<li><a class="el" href="Recast__api_8txt.html">Recast_api.txt</a></li>
<li><a class="el" href="Recast_8cpp.html">Recast.cpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="structrcPolyMeshDetail.html">rcPolyMeshDetail</a></li>
&nbsp;&nbsp;<a href="https://github.com/recastnavigation/recastnavigation">Project Home</a>
| <a href="./License.txt">Licence (ZLib)</a>
| Copyright 2009 Mikko Mononen
</ul>
</div>
</body>
</html>