123 lines
13 KiB
HTML
Vendored
123 lines
13 KiB
HTML
Vendored
<!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" lang="zh">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
|
<meta name="generator" content="Doxygen 1.13.1"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>dl: D:/dl/dl/math/dl_mesh.h 源文件</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>
|
|
<script type="text/javascript" src="clipboard.js"></script>
|
|
<link href="navtree.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="resize.js"></script>
|
|
<link href="doxygen.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 id="projectrow">
|
|
<td id="projectalign">
|
|
<div id="projectname">dl
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- 制作者 Doxygen 1.13.1 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() { codefold.init(0); });
|
|
/* @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:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() {
|
|
initMenu('',false,false,'search.php','搜索',false);
|
|
});
|
|
/* @license-end */
|
|
</script>
|
|
<div id="main-nav"></div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function(){ initResizable(false); });
|
|
/* @license-end */
|
|
</script>
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_17297ffb27ce571941f5fb5008f01a1f.html">dl</a></li><li class="navelem"><a class="el" href="dir_d483d22d183a78db490f3ff6a4a958eb.html">math</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div id="doc-content">
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">dl_mesh.h</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="dl__mesh_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span></div>
|
|
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="preprocessor">#pragma once</span></div>
|
|
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span> </div>
|
|
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="preprocessor">#include <vector></span></div>
|
|
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> </div>
|
|
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="preprocessor">#include "<a class="code" href="dl__type__def_8h.html">base/dl_type_def.h</a>"</span></div>
|
|
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span> </div>
|
|
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacedl.html">dl</a></div>
|
|
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span>{</div>
|
|
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> </div>
|
|
<div class="foldopen" id="foldopen00019" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"><a class="line" href="namespacedl.html#aa2d82daf631e55e4b17ed86270c2c33d"> 19</a></span> <span class="keyword">enum class</span> <a class="code hl_enumeration" href="namespacedl.html#aa2d82daf631e55e4b17ed86270c2c33d">MeshType</a></div>
|
|
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> {</div>
|
|
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"><a class="line" href="namespacedl.html#aa2d82daf631e55e4b17ed86270c2c33dab50339a10e1de285ac99d4c3990b8693"> 21</a></span> <a class="code hl_enumvalue" href="namespacedl.html#ae6d22d798e0e50d8494ec9b3e848c7bdab50339a10e1de285ac99d4c3990b8693">NONE</a>,</div>
|
|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"><a class="line" href="namespacedl.html#aa2d82daf631e55e4b17ed86270c2c33dae657cce1913c857166b0475f18668ef5"> 22</a></span> <a class="code hl_enumvalue" href="namespacedl.html#aa2d82daf631e55e4b17ed86270c2c33dae657cce1913c857166b0475f18668ef5">BOX</a></div>
|
|
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> };</div>
|
|
</div>
|
|
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> </div>
|
|
<div class="foldopen" id="foldopen00025" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"><a class="line" href="classdl_1_1_mesh.html"> 25</a></span><span class="keyword">class </span><a class="code hl_function" href="classdl_1_1_mesh.html#a566148e787fe1ef765cd0bc397ee4ca2">Mesh</a></div>
|
|
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span>{</div>
|
|
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="keyword">public</span>:</div>
|
|
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"><a class="line" href="classdl_1_1_mesh.html#a41e181b87cddff1d98451bb17b62f42b"> 28</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classdl_1_1_mesh.html#a41e181b87cddff1d98451bb17b62f42b">InitBox</a>(<span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y, <span class="keywordtype">float</span> z);</div>
|
|
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"><a class="line" href="classdl_1_1_mesh.html#a24309be5294f2b41513057aef37d0ec5"> 29</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classdl_1_1_mesh.html#a24309be5294f2b41513057aef37d0ec5">Offset</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="namespacedl.html#a8caf4bcf54955de2e79b95811306b841">Position3</a>& pos);</div>
|
|
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> </div>
|
|
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="classdl_1_1_mesh.html#a154cb07a34ddd64926fcad258280c07d"> 31</a></span> <span class="keyword">const</span> std::vector<Position3>& <a class="code hl_function" href="classdl_1_1_mesh.html#a154cb07a34ddd64926fcad258280c07d">GetVertex</a>() { <span class="keywordflow">return</span> _allVertex; }</div>
|
|
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"><a class="line" href="classdl_1_1_mesh.html#aaeb1ae16d54a392f2b674f3c95d6c210"> 32</a></span> <span class="keyword">const</span> std::vector<uint32_t>& <a class="code hl_function" href="classdl_1_1_mesh.html#aaeb1ae16d54a392f2b674f3c95d6c210">GetIndex</a>() { <span class="keywordflow">return</span> _allIndex; }</div>
|
|
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> </div>
|
|
<div class="foldopen" id="foldopen00034" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="classdl_1_1_mesh.html#a566148e787fe1ef765cd0bc397ee4ca2"> 34</a></span> <a class="code hl_function" href="classdl_1_1_mesh.html#a566148e787fe1ef765cd0bc397ee4ca2">Mesh</a>() :</div>
|
|
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> _type{ <a class="code hl_enumeration" href="namespacedl.html#aa2d82daf631e55e4b17ed86270c2c33d">MeshType</a>::<a class="code hl_enumvalue" href="namespacedl.html#ae6d22d798e0e50d8494ec9b3e848c7bdab50339a10e1de285ac99d4c3990b8693">NONE</a> }</div>
|
|
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> {</div>
|
|
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span><span class="keyword">private</span>:</div>
|
|
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> <a class="code hl_enumeration" href="namespacedl.html#aa2d82daf631e55e4b17ed86270c2c33d">MeshType</a> _type;</div>
|
|
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> std::vector<Position3> _allVertex;</div>
|
|
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> std::vector<uint32_t> _allIndex;</div>
|
|
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span>}</div>
|
|
<div class="ttc" id="aclassdl_1_1_mesh_html_a154cb07a34ddd64926fcad258280c07d"><div class="ttname"><a href="classdl_1_1_mesh.html#a154cb07a34ddd64926fcad258280c07d">dl::Mesh::GetVertex</a></div><div class="ttdeci">const std::vector< Position3 > & GetVertex()</div><div class="ttdef"><b>定义</b> <a href="#l00031">dl_mesh.h:31</a></div></div>
|
|
<div class="ttc" id="aclassdl_1_1_mesh_html_a24309be5294f2b41513057aef37d0ec5"><div class="ttname"><a href="classdl_1_1_mesh.html#a24309be5294f2b41513057aef37d0ec5">dl::Mesh::Offset</a></div><div class="ttdeci">void Offset(const Position3 &pos)</div></div>
|
|
<div class="ttc" id="aclassdl_1_1_mesh_html_a41e181b87cddff1d98451bb17b62f42b"><div class="ttname"><a href="classdl_1_1_mesh.html#a41e181b87cddff1d98451bb17b62f42b">dl::Mesh::InitBox</a></div><div class="ttdeci">void InitBox(float x, float y, float z)</div></div>
|
|
<div class="ttc" id="aclassdl_1_1_mesh_html_a566148e787fe1ef765cd0bc397ee4ca2"><div class="ttname"><a href="classdl_1_1_mesh.html#a566148e787fe1ef765cd0bc397ee4ca2">dl::Mesh::Mesh</a></div><div class="ttdeci">Mesh()</div><div class="ttdef"><b>定义</b> <a href="#l00034">dl_mesh.h:34</a></div></div>
|
|
<div class="ttc" id="aclassdl_1_1_mesh_html_aaeb1ae16d54a392f2b674f3c95d6c210"><div class="ttname"><a href="classdl_1_1_mesh.html#aaeb1ae16d54a392f2b674f3c95d6c210">dl::Mesh::GetIndex</a></div><div class="ttdeci">const std::vector< uint32_t > & GetIndex()</div><div class="ttdef"><b>定义</b> <a href="#l00032">dl_mesh.h:32</a></div></div>
|
|
<div class="ttc" id="adl__type__def_8h_html"><div class="ttname"><a href="dl__type__def_8h.html">dl_type_def.h</a></div><div class="ttdoc">通用类型定义</div></div>
|
|
<div class="ttc" id="anamespacedl_html"><div class="ttname"><a href="namespacedl.html">dl</a></div><div class="ttdef"><b>定义</b> <a href="dl__array_8h_source.html#l00021">dl_array.h:22</a></div></div>
|
|
<div class="ttc" id="anamespacedl_html_a8caf4bcf54955de2e79b95811306b841"><div class="ttname"><a href="namespacedl.html#a8caf4bcf54955de2e79b95811306b841">dl::Position3</a></div><div class="ttdeci">Array< Float, 3 > Position3</div><div class="ttdef"><b>定义</b> <a href="dl__type__def_8h_source.html#l00042">dl_type_def.h:42</a></div></div>
|
|
<div class="ttc" id="anamespacedl_html_aa2d82daf631e55e4b17ed86270c2c33d"><div class="ttname"><a href="namespacedl.html#aa2d82daf631e55e4b17ed86270c2c33d">dl::MeshType</a></div><div class="ttdeci">MeshType</div><div class="ttdef"><b>定义</b> <a href="#l00019">dl_mesh.h:20</a></div></div>
|
|
<div class="ttc" id="anamespacedl_html_aa2d82daf631e55e4b17ed86270c2c33dae657cce1913c857166b0475f18668ef5"><div class="ttname"><a href="namespacedl.html#aa2d82daf631e55e4b17ed86270c2c33dae657cce1913c857166b0475f18668ef5">dl::MeshType::BOX</a></div><div class="ttdeci">@ BOX</div><div class="ttdef"><b>定义</b> <a href="#l00022">dl_mesh.h:22</a></div></div>
|
|
<div class="ttc" id="anamespacedl_html_ae6d22d798e0e50d8494ec9b3e848c7bdab50339a10e1de285ac99d4c3990b8693"><div class="ttname"><a href="namespacedl.html#ae6d22d798e0e50d8494ec9b3e848c7bdab50339a10e1de285ac99d4c3990b8693">dl::DebugView3D::NONE</a></div><div class="ttdeci">@ NONE</div><div class="ttdef"><b>定义</b> <a href="dl__type__user_8h_source.html#l00057">dl_type_user.h:57</a></div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.13.1
|
|
</small></address>
|
|
</div><!-- doc-content -->
|
|
</body>
|
|
</html>
|