Skip to content

Commit

Permalink
adds base::MeshFactory::createBall
Browse files Browse the repository at this point in the history
  • Loading branch information
kostrykin committed Jun 8, 2021
1 parent 121a994 commit 7d732ff
Show file tree
Hide file tree
Showing 10 changed files with 162 additions and 21 deletions.
10 changes: 6 additions & 4 deletions docs/html/MeshFactory_8h_source.html

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion docs/html/VersionLog.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ <h2><a class="anchor" id="v_3_1_0"></a>
API Version 3.1.0</h2>
<ul>
<li>Linked GLEW statically into the project by included the corresponding source files, since <a href="http://glew.sourceforge.net/install.html">this is the recommended method</a>.</li>
<li>Added the <code>BUILD_EGL</code> build switch to build GLEW with EGL support (defaults to <code>OFF</code>). </li>
<li>Added the <code>BUILD_EGL</code> build switch to build GLEW with EGL support (defaults to <code>OFF</code>).</li>
<li>Added <a class="el" href="classCarna_1_1base_1_1MeshFactory.html#a0d9934acdf7c557da98c4ca8dc7f3c00">base::MeshFactory::createBall</a>. </li>
</ul>
</div></div><!-- contents -->
<hr class="footer"/>
Expand Down
11 changes: 6 additions & 5 deletions docs/html/classCarna_1_1base_1_1MeshFactory-members.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,12 @@

<p>This is the complete list of members for <a class="el" href="classCarna_1_1base_1_1MeshFactory.html">Carna::base::MeshFactory&lt; VertexType &gt;</a>, including all inherited members.</p>
<table class="directory">
<tr class="even"><td class="entry"><a class="el" href="classCarna_1_1base_1_1MeshFactory.html#acac7c62e90744138576e18dd7496f6aa">createBox</a>(float width, float height, float depth)</td><td class="entry"><a class="el" href="classCarna_1_1base_1_1MeshFactory.html">Carna::base::MeshFactory&lt; VertexType &gt;</a></td><td class="entry"><span class="mlabel">static</span></td></tr>
<tr><td class="entry"><a class="el" href="classCarna_1_1base_1_1MeshFactory.html#a7bb51a25b6bd2a72b5d22a0cca5b08e1">createBox</a>(const math::Vector3f &amp;size)</td><td class="entry"><a class="el" href="classCarna_1_1base_1_1MeshFactory.html">Carna::base::MeshFactory&lt; VertexType &gt;</a></td><td class="entry"><span class="mlabel">static</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classCarna_1_1base_1_1MeshFactory.html#ada9eaa3c9a03821fc9fa0fa9c715319e">createFromSTL</a>(const std::string &amp;path)</td><td class="entry"><a class="el" href="classCarna_1_1base_1_1MeshFactory.html">Carna::base::MeshFactory&lt; VertexType &gt;</a></td><td class="entry"><span class="mlabel">inline</span><span class="mlabel">static</span></td></tr>
<tr><td class="entry"><a class="el" href="classCarna_1_1base_1_1MeshFactory.html#a9ad35c50b81c6b0d376342239af34bff">createFromSTL</a>(std::istream &amp;stlStream)</td><td class="entry"><a class="el" href="classCarna_1_1base_1_1MeshFactory.html">Carna::base::MeshFactory&lt; VertexType &gt;</a></td><td class="entry"><span class="mlabel">static</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classCarna_1_1base_1_1MeshFactory.html#a071136782c95030052bceea73ba1b8f7">createPoint</a>()</td><td class="entry"><a class="el" href="classCarna_1_1base_1_1MeshFactory.html">Carna::base::MeshFactory&lt; VertexType &gt;</a></td><td class="entry"><span class="mlabel">static</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classCarna_1_1base_1_1MeshFactory.html#a0d9934acdf7c557da98c4ca8dc7f3c00">createBall</a>(float radius, unsigned int degree)</td><td class="entry"><a class="el" href="classCarna_1_1base_1_1MeshFactory.html">Carna::base::MeshFactory&lt; VertexType &gt;</a></td><td class="entry"><span class="mlabel">static</span></td></tr>
<tr><td class="entry"><a class="el" href="classCarna_1_1base_1_1MeshFactory.html#acac7c62e90744138576e18dd7496f6aa">createBox</a>(float width, float height, float depth)</td><td class="entry"><a class="el" href="classCarna_1_1base_1_1MeshFactory.html">Carna::base::MeshFactory&lt; VertexType &gt;</a></td><td class="entry"><span class="mlabel">static</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classCarna_1_1base_1_1MeshFactory.html#a7bb51a25b6bd2a72b5d22a0cca5b08e1">createBox</a>(const math::Vector3f &amp;size)</td><td class="entry"><a class="el" href="classCarna_1_1base_1_1MeshFactory.html">Carna::base::MeshFactory&lt; VertexType &gt;</a></td><td class="entry"><span class="mlabel">static</span></td></tr>
<tr><td class="entry"><a class="el" href="classCarna_1_1base_1_1MeshFactory.html#ada9eaa3c9a03821fc9fa0fa9c715319e">createFromSTL</a>(const std::string &amp;path)</td><td class="entry"><a class="el" href="classCarna_1_1base_1_1MeshFactory.html">Carna::base::MeshFactory&lt; VertexType &gt;</a></td><td class="entry"><span class="mlabel">inline</span><span class="mlabel">static</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classCarna_1_1base_1_1MeshFactory.html#a9ad35c50b81c6b0d376342239af34bff">createFromSTL</a>(std::istream &amp;stlStream)</td><td class="entry"><a class="el" href="classCarna_1_1base_1_1MeshFactory.html">Carna::base::MeshFactory&lt; VertexType &gt;</a></td><td class="entry"><span class="mlabel">static</span></td></tr>
<tr><td class="entry"><a class="el" href="classCarna_1_1base_1_1MeshFactory.html#a071136782c95030052bceea73ba1b8f7">createPoint</a>()</td><td class="entry"><a class="el" href="classCarna_1_1base_1_1MeshFactory.html">Carna::base::MeshFactory&lt; VertexType &gt;</a></td><td class="entry"><span class="mlabel">static</span></td></tr>
</table></div><!-- contents -->
<hr class="footer"/>
<address class="footer">
Expand Down
53 changes: 50 additions & 3 deletions docs/html/classCarna_1_1base_1_1MeshFactory.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@
<tr class="separator:acac7c62e90744138576e18dd7496f6aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7bb51a25b6bd2a72b5d22a0cca5b08e1"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classCarna_1_1base_1_1ManagedMesh.html">ManagedMesh</a>&lt; VertexType, uint8_t &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCarna_1_1base_1_1MeshFactory.html#a7bb51a25b6bd2a72b5d22a0cca5b08e1">createBox</a> (const <a class="el" href="namespaceCarna_1_1base_1_1math.html#a5514f9471eeafc285ab52b33f1c79cec">math::Vector3f</a> &amp;size)</td></tr>
<tr class="separator:a7bb51a25b6bd2a72b5d22a0cca5b08e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d9934acdf7c557da98c4ca8dc7f3c00"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classCarna_1_1base_1_1ManagedMesh.html">ManagedMesh</a>&lt; VertexType, uint16_t &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCarna_1_1base_1_1MeshFactory.html#a0d9934acdf7c557da98c4ca8dc7f3c00">createBall</a> (float radius, unsigned int degree)</td></tr>
<tr class="memdesc:a0d9934acdf7c557da98c4ca8dc7f3c00"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates sphere with <em>radius</em> and a vertices number determined by <em>degree</em>. The ball is centered in \(\left(0, 0, 0\right)^\mathrm T\). <a href="#a0d9934acdf7c557da98c4ca8dc7f3c00">More...</a><br /></td></tr>
<tr class="separator:a0d9934acdf7c557da98c4ca8dc7f3c00"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a071136782c95030052bceea73ba1b8f7"><td class="memItemLeft" align="right" valign="top"><a id="a071136782c95030052bceea73ba1b8f7"></a>
static <a class="el" href="classCarna_1_1base_1_1ManagedMesh.html">ManagedMesh</a>&lt; VertexType, uint8_t &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCarna_1_1base_1_1MeshFactory.html#a071136782c95030052bceea73ba1b8f7">createPoint</a> ()</td></tr>
<tr class="memdesc:a071136782c95030052bceea73ba1b8f7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates mesh that consists of a single point. <br /></td></tr>
Expand All @@ -117,6 +120,50 @@

<p class="definition">Definition at line <a class="el" href="MeshFactory_8h_source.html#l00056">56</a> of file <a class="el" href="MeshFactory_8h_source.html">MeshFactory.h</a>.</p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a0d9934acdf7c557da98c4ca8dc7f3c00"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0d9934acdf7c557da98c4ca8dc7f3c00">&#9670;&nbsp;</a></span>createBall()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename VertexType &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classCarna_1_1base_1_1ManagedMesh.html">ManagedMesh</a>&lt; VertexType, uint16_t &gt; &amp; <a class="el" href="classCarna_1_1base_1_1MeshFactory.html">Carna::base::MeshFactory</a>&lt; VertexType &gt;::createBall </td>
<td>(</td>
<td class="paramtype">float&#160;</td>
<td class="paramname"><em>radius</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned int&#160;</td>
<td class="paramname"><em>degree</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">

<p>Creates sphere with <em>radius</em> and a vertices number determined by <em>degree</em>. The ball is centered in \(\left(0, 0, 0\right)^\mathrm T\). </p>
<dl class="section date"><dt>Date</dt><dd>June 2021 </dd></dl>
<dl class="section since"><dt>Since</dt><dd><a class="el" href="VersionLog.html#v_3_1_0">API Version 3.1.0</a> </dd></dl>

<p class="definition">Definition at line <a class="el" href="MeshFactory_8h_source.html#l00177">177</a> of file <a class="el" href="MeshFactory_8h_source.html">MeshFactory.h</a>.</p>

</div>
</div>
<a id="a7bb51a25b6bd2a72b5d22a0cca5b08e1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7bb51a25b6bd2a72b5d22a0cca5b08e1">&#9670;&nbsp;</a></span>createBox()</h2>

Expand Down Expand Up @@ -144,7 +191,7 @@ <h2 class="memtitle"><span class="permalink"><a href="#a7bb51a25b6bd2a72b5d22a0c
</div><div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>

<p class="definition">Definition at line <a class="el" href="MeshFactory_8h_source.html#l00108">108</a> of file <a class="el" href="MeshFactory_8h_source.html">MeshFactory.h</a>.</p>
<p class="definition">Definition at line <a class="el" href="MeshFactory_8h_source.html#l00117">117</a> of file <a class="el" href="MeshFactory_8h_source.html">MeshFactory.h</a>.</p>

</div>
</div>
Expand Down Expand Up @@ -179,7 +226,7 @@ <h2 class="memtitle"><span class="permalink"><a href="#ada9eaa3c9a03821fc9fa0fa9
<dl class="section date"><dt>Date</dt><dd>July 2015 </dd></dl>
<dl class="section since"><dt>Since</dt><dd><a class="el" href="VersionLog.html#v_3_0_2">API Version 3.0.2</a> </dd></dl>

<p class="definition">Definition at line <a class="el" href="MeshFactory_8h_source.html#l00181">181</a> of file <a class="el" href="MeshFactory_8h_source.html">MeshFactory.h</a>.</p>
<p class="definition">Definition at line <a class="el" href="MeshFactory_8h_source.html#l00262">262</a> of file <a class="el" href="MeshFactory_8h_source.html">MeshFactory.h</a>.</p>

</div>
</div>
Expand Down Expand Up @@ -210,7 +257,7 @@ <h2 class="memtitle"><span class="permalink"><a href="#a9ad35c50b81c6b0d37634223
</div><div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>

<p class="definition">Definition at line <a class="el" href="MeshFactory_8h_source.html#l00187">187</a> of file <a class="el" href="MeshFactory_8h_source.html">MeshFactory.h</a>.</p>
<p class="definition">Definition at line <a class="el" href="MeshFactory_8h_source.html#l00268">268</a> of file <a class="el" href="MeshFactory_8h_source.html">MeshFactory.h</a>.</p>

</div>
</div>
Expand Down
11 changes: 7 additions & 4 deletions docs/html/functions_c.html
Original file line number Diff line number Diff line change
Expand Up @@ -197,14 +197,17 @@ <h3><a id="index_c"></a>- c -</h3><ul>
, <a class="el" href="classCarna_1_1base_1_1Material.html#a171cf4340cdda88f4e304e86934cd667">Carna::base::Material</a>
, <a class="el" href="classCarna_1_1base_1_1ShaderProgram_1_1Factory.html#aa915256de5ef28f460d87da80bda1b91">Carna::base::ShaderProgram::Factory</a>
</li>
<li>createBall()
: <a class="el" href="classCarna_1_1base_1_1MeshFactory.html#a0d9934acdf7c557da98c4ca8dc7f3c00">Carna::base::MeshFactory&lt; VertexType &gt;</a>
</li>
<li>createBox()
: <a class="el" href="classCarna_1_1base_1_1MeshFactory.html#a7bb51a25b6bd2a72b5d22a0cca5b08e1">Carna::base::MeshFactory&lt; VertexType &gt;</a>
: <a class="el" href="classCarna_1_1base_1_1MeshFactory.html#acac7c62e90744138576e18dd7496f6aa">Carna::base::MeshFactory&lt; VertexType &gt;</a>
</li>
<li>createFromSTL()
: <a class="el" href="classCarna_1_1base_1_1MeshFactory.html#a9ad35c50b81c6b0d376342239af34bff">Carna::base::MeshFactory&lt; VertexType &gt;</a>
: <a class="el" href="classCarna_1_1base_1_1MeshFactory.html#ada9eaa3c9a03821fc9fa0fa9c715319e">Carna::base::MeshFactory&lt; VertexType &gt;</a>
</li>
<li>createNode()
: <a class="el" href="classCarna_1_1helpers_1_1VolumeGridHelper.html#a12e8c26e01a93e8a4eb1976bd560a254">Carna::helpers::VolumeGridHelper&lt; SegmentHUVolumeType, SegmentNormalsVolumeType &gt;</a>
: <a class="el" href="classCarna_1_1helpers_1_1VolumeGridHelper.html#ab2167daca1fce759de33c027fa98008b">Carna::helpers::VolumeGridHelper&lt; SegmentHUVolumeType, SegmentNormalsVolumeType &gt;</a>
, <a class="el" href="classCarna_1_1helpers_1_1VolumeGridHelperBase.html#a7a8bcb4668d5134eb12ba797938f388c">Carna::helpers::VolumeGridHelperBase</a>
</li>
<li>createNullPtr()
Expand All @@ -214,7 +217,7 @@ <h3><a id="index_c"></a>- c -</h3><ul>
: <a class="el" href="classCarna_1_1base_1_1MeshFactory.html#a071136782c95030052bceea73ba1b8f7">Carna::base::MeshFactory&lt; VertexType &gt;</a>
</li>
<li>createPointMarker()
: <a class="el" href="classCarna_1_1helpers_1_1PointMarkerHelper.html#a9744cc59dc0c17fdfd24dc7681f4e692">Carna::helpers::PointMarkerHelper</a>
: <a class="el" href="classCarna_1_1helpers_1_1PointMarkerHelper.html#a6ffe0db4d91eb503180de8592c46173a">Carna::helpers::PointMarkerHelper</a>
</li>
<li>createRenderTexture()
: <a class="el" href="classCarna_1_1base_1_1Framebuffer.html#afa2a3a79789e82834364935562086a60">Carna::base::Framebuffer</a>
Expand Down
9 changes: 6 additions & 3 deletions docs/html/functions_func_c.html
Original file line number Diff line number Diff line change
Expand Up @@ -179,15 +179,18 @@ <h3><a id="index_c"></a>- c -</h3><ul>
, <a class="el" href="classCarna_1_1base_1_1Material.html#a171cf4340cdda88f4e304e86934cd667">Carna::base::Material</a>
, <a class="el" href="classCarna_1_1base_1_1ShaderProgram_1_1Factory.html#aa915256de5ef28f460d87da80bda1b91">Carna::base::ShaderProgram::Factory</a>
</li>
<li>createBall()
: <a class="el" href="classCarna_1_1base_1_1MeshFactory.html#a0d9934acdf7c557da98c4ca8dc7f3c00">Carna::base::MeshFactory&lt; VertexType &gt;</a>
</li>
<li>createBox()
: <a class="el" href="classCarna_1_1base_1_1MeshFactory.html#acac7c62e90744138576e18dd7496f6aa">Carna::base::MeshFactory&lt; VertexType &gt;</a>
</li>
<li>createFromSTL()
: <a class="el" href="classCarna_1_1base_1_1MeshFactory.html#a9ad35c50b81c6b0d376342239af34bff">Carna::base::MeshFactory&lt; VertexType &gt;</a>
: <a class="el" href="classCarna_1_1base_1_1MeshFactory.html#ada9eaa3c9a03821fc9fa0fa9c715319e">Carna::base::MeshFactory&lt; VertexType &gt;</a>
</li>
<li>createNode()
: <a class="el" href="classCarna_1_1helpers_1_1VolumeGridHelper.html#ab2167daca1fce759de33c027fa98008b">Carna::helpers::VolumeGridHelper&lt; SegmentHUVolumeType, SegmentNormalsVolumeType &gt;</a>
, <a class="el" href="classCarna_1_1helpers_1_1VolumeGridHelperBase.html#a7a8bcb4668d5134eb12ba797938f388c">Carna::helpers::VolumeGridHelperBase</a>
: <a class="el" href="classCarna_1_1helpers_1_1VolumeGridHelper.html#a12e8c26e01a93e8a4eb1976bd560a254">Carna::helpers::VolumeGridHelper&lt; SegmentHUVolumeType, SegmentNormalsVolumeType &gt;</a>
, <a class="el" href="classCarna_1_1helpers_1_1VolumeGridHelperBase.html#a344fbc231c9a420673c1caccea984c60">Carna::helpers::VolumeGridHelperBase</a>
</li>
<li>createNullPtr()
: <a class="el" href="classCarna_1_1base_1_1Aggregation.html#a06b7f6fb35dd5e425107c85a929675f7">Carna::base::Aggregation&lt; AssociatedObjectType &gt;</a>
Expand Down
1 change: 1 addition & 0 deletions docs/html/search/all_3.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7d732ff

Please sign in to comment.