Skip to content

Commit

Permalink
add extrude along vec3
Browse files Browse the repository at this point in the history
  • Loading branch information
wenqian157 committed Mar 23, 2024
1 parent 718b9a9 commit 7a89f5a
Show file tree
Hide file tree
Showing 6 changed files with 119 additions and 4 deletions.
2 changes: 2 additions & 0 deletions class_mola_1_1_mesh_subdivision-members.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@
<tr class="even"><td class="entry"><a class="el" href="class_mola_1_1_mesh_subdivision.html#ade59195a4087ad8e3f4e063318d16cd1">CatmullClark</a>(MolaMesh mesh)</td><td class="entry"><a class="el" href="class_mola_1_1_mesh_subdivision.html">MeshSubdivision</a></td><td class="entry"><span class="mlabel">inline</span><span class="mlabel">static</span></td></tr>
<tr class="odd"><td class="entry"><a class="el" href="class_mola_1_1_mesh_subdivision.html#a740b83a5e3882e80260b40d77ec5780e">Extrude</a>(MolaMesh molaMesh, float height, bool capTop=true)</td><td class="entry"><a class="el" href="class_mola_1_1_mesh_subdivision.html">MeshSubdivision</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="class_mola_1_1_mesh_subdivision.html#a602e16bee4859442d4a7859514cf79b2">Extrude</a>(MolaMesh molaMesh, List&lt; float &gt; heights, List&lt; bool &gt; capTops)</td><td class="entry"><a class="el" href="class_mola_1_1_mesh_subdivision.html">MeshSubdivision</a></td><td class="entry"><span class="mlabel">inline</span><span class="mlabel">static</span></td></tr>
<tr class="odd"><td class="entry"><a class="el" href="class_mola_1_1_mesh_subdivision.html#a26b99635f7ebb469061e67e72241c342">ExtrudeAlongVec</a>(MolaMesh molaMesh, Vec3 direction, float height, bool capTop=true)</td><td class="entry"><a class="el" href="class_mola_1_1_mesh_subdivision.html">MeshSubdivision</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="class_mola_1_1_mesh_subdivision.html#aa8dbbf2507a01ff90f6e575b4f6661e2">ExtrudeAlongVec</a>(MolaMesh molaMesh, List&lt; Vec3 &gt; directions, List&lt; float &gt; heights, List&lt; bool &gt; capTops)</td><td class="entry"><a class="el" href="class_mola_1_1_mesh_subdivision.html">MeshSubdivision</a></td><td class="entry"><span class="mlabel">inline</span><span class="mlabel">static</span></td></tr>
<tr class="odd"><td class="entry"><a class="el" href="class_mola_1_1_mesh_subdivision.html#a01eba07f22ef9487188a6910bd15fd5b">ExtrudeTapered</a>(MolaMesh molaMesh, float height, float fraction, bool capTop)</td><td class="entry"><a class="el" href="class_mola_1_1_mesh_subdivision.html">MeshSubdivision</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="class_mola_1_1_mesh_subdivision.html#a60fbf79a4203aa05321da53e89f367fc">ExtrudeTapered</a>(MolaMesh molaMesh, List&lt; float &gt; heights, List&lt; float &gt; fractions, List&lt; bool &gt; capTops)</td><td class="entry"><a class="el" href="class_mola_1_1_mesh_subdivision.html">MeshSubdivision</a></td><td class="entry"><span class="mlabel">inline</span><span class="mlabel">static</span></td></tr>
<tr class="odd"><td class="entry"><a class="el" href="class_mola_1_1_mesh_subdivision.html#ab03fe6002a5226c66364ef177f75269d">ExtrudeToPointCenter</a>(MolaMesh molaMesh, float height=0f)</td><td class="entry"><a class="el" href="class_mola_1_1_mesh_subdivision.html">MeshSubdivision</a></td><td class="entry"><span class="mlabel">inline</span><span class="mlabel">static</span></td></tr>
Expand Down
109 changes: 109 additions & 0 deletions class_mola_1_1_mesh_subdivision.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@
<tr class="memitem:a602e16bee4859442d4a7859514cf79b2" id="r_a602e16bee4859442d4a7859514cf79b2"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_mola_1_1_mola_mesh.html">MolaMesh</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a602e16bee4859442d4a7859514cf79b2">Extrude</a> (<a class="el" href="class_mola_1_1_mola_mesh.html">MolaMesh</a> molaMesh, List&lt; float &gt; heights, List&lt; bool &gt; capTops)</td></tr>
<tr class="memdesc:a602e16bee4859442d4a7859514cf79b2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Extrudes the all faces in a MolaMesh straight by a list distance height. <br /></td></tr>
<tr class="separator:a602e16bee4859442d4a7859514cf79b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa8dbbf2507a01ff90f6e575b4f6661e2" id="r_aa8dbbf2507a01ff90f6e575b4f6661e2"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_mola_1_1_mola_mesh.html">MolaMesh</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aa8dbbf2507a01ff90f6e575b4f6661e2">ExtrudeAlongVec</a> (<a class="el" href="class_mola_1_1_mola_mesh.html">MolaMesh</a> molaMesh, List&lt; <a class="el" href="struct_mola_1_1_vec3.html">Vec3</a> &gt; directions, List&lt; float &gt; heights, List&lt; bool &gt; capTops)</td></tr>
<tr class="memdesc:aa8dbbf2507a01ff90f6e575b4f6661e2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Extrudes the all faces in a MolaMesh along a list of directions and by a list distance height. <br /></td></tr>
<tr class="separator:aa8dbbf2507a01ff90f6e575b4f6661e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26b99635f7ebb469061e67e72241c342" id="r_a26b99635f7ebb469061e67e72241c342"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_mola_1_1_mola_mesh.html">MolaMesh</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a26b99635f7ebb469061e67e72241c342">ExtrudeAlongVec</a> (<a class="el" href="class_mola_1_1_mola_mesh.html">MolaMesh</a> molaMesh, <a class="el" href="struct_mola_1_1_vec3.html">Vec3</a> direction, float height, bool capTop=true)</td></tr>
<tr class="memdesc:a26b99635f7ebb469061e67e72241c342"><td class="mdescLeft">&#160;</td><td class="mdescRight">Extrudes the all faces in a MolaMesh along a direction by a single distance height. <br /></td></tr>
<tr class="separator:a26b99635f7ebb469061e67e72241c342"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01eba07f22ef9487188a6910bd15fd5b" id="r_a01eba07f22ef9487188a6910bd15fd5b"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_mola_1_1_mola_mesh.html">MolaMesh</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a01eba07f22ef9487188a6910bd15fd5b">ExtrudeTapered</a> (<a class="el" href="class_mola_1_1_mola_mesh.html">MolaMesh</a> molaMesh, float height, float fraction, bool capTop)</td></tr>
<tr class="memdesc:a01eba07f22ef9487188a6910bd15fd5b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Extrudes all face in a MolaMesh tapered like a window by creating an offset face and quads between every original edge and the corresponding new edge. <br /></td></tr>
<tr class="separator:a01eba07f22ef9487188a6910bd15fd5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
Expand Down Expand Up @@ -283,6 +289,109 @@ <h2 class="memtitle"><span class="permalink"><a href="#a602e16bee4859442d4a78595
<dl class="section return"><dt>Returns</dt><dd>The result MolaMesh</dd></dl>
<p><img src="extrude.png" alt="" class="inline"/> </p>

</div>
</div>
<a id="aa8dbbf2507a01ff90f6e575b4f6661e2" name="aa8dbbf2507a01ff90f6e575b4f6661e2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa8dbbf2507a01ff90f6e575b4f6661e2">&#9670;&#160;</a></span>ExtrudeAlongVec() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="class_mola_1_1_mola_mesh.html">MolaMesh</a> ExtrudeAlongVec </td>
<td>(</td>
<td class="paramtype"><a class="el" href="class_mola_1_1_mola_mesh.html">MolaMesh</a></td> <td class="paramname"><span class="paramname"><em>molaMesh</em>, </span></td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">List&lt; <a class="el" href="struct_mola_1_1_vec3.html">Vec3</a> &gt;</td> <td class="paramname"><span class="paramname"><em>directions</em>, </span></td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">List&lt; float &gt;</td> <td class="paramname"><span class="paramname"><em>heights</em>, </span></td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">List&lt; bool &gt;</td> <td class="paramname"><span class="paramname"><em>capTops</em></span>&#160;)</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">

<p>Extrudes the all faces in a MolaMesh along a list of directions and by a list distance height. </p>
<p>The list length must much the face count.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">molaMesh</td><td>A MolaMesh</td></tr>
<tr><td class="paramname">directions</td><td>A list of Vec3</td></tr>
<tr><td class="paramname">heights</td><td>A list Extruding height</td></tr>
<tr><td class="paramname">capTops</td><td>A list of bool to decide Wether to cap the top or not</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The result MolaMesh</dd></dl>

</div>
</div>
<a id="a26b99635f7ebb469061e67e72241c342" name="a26b99635f7ebb469061e67e72241c342"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a26b99635f7ebb469061e67e72241c342">&#9670;&#160;</a></span>ExtrudeAlongVec() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="class_mola_1_1_mola_mesh.html">MolaMesh</a> ExtrudeAlongVec </td>
<td>(</td>
<td class="paramtype"><a class="el" href="class_mola_1_1_mola_mesh.html">MolaMesh</a></td> <td class="paramname"><span class="paramname"><em>molaMesh</em>, </span></td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="struct_mola_1_1_vec3.html">Vec3</a></td> <td class="paramname"><span class="paramname"><em>direction</em>, </span></td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float</td> <td class="paramname"><span class="paramname"><em>height</em>, </span></td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool</td> <td class="paramname"><span class="paramname"><em>capTop</em><span class="paramdefsep"> = </span><span class="paramdefval">true</span></span>&#160;)</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">

<p>Extrudes the all faces in a MolaMesh along a direction by a single distance height. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">molaMesh</td><td>A MolaMesh</td></tr>
<tr><td class="paramname">direction</td><td>A Vec3 for direction</td></tr>
<tr><td class="paramname">height</td><td>Extruding height</td></tr>
<tr><td class="paramname">capTop</td><td>Wether to cp the top or not</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The result MolaMesh</dd></dl>

</div>
</div>
<a id="a01eba07f22ef9487188a6910bd15fd5b" name="a01eba07f22ef9487188a6910bd15fd5b"></a>
Expand Down
1 change: 1 addition & 0 deletions functions.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ <h3><a id="index_c" name="index_c"></a>- c -</h3><ul>

<h3><a id="index_e" name="index_e"></a>- e -</h3><ul>
<li>Extrude()&#160;:&#160;<a class="el" href="class_mola_1_1_mesh_subdivision.html#a740b83a5e3882e80260b40d77ec5780e">MeshSubdivision</a></li>
<li>ExtrudeAlongVec()&#160;:&#160;<a class="el" href="class_mola_1_1_mesh_subdivision.html#a26b99635f7ebb469061e67e72241c342">MeshSubdivision</a></li>
<li>ExtrudeTapered()&#160;:&#160;<a class="el" href="class_mola_1_1_mesh_subdivision.html#a01eba07f22ef9487188a6910bd15fd5b">MeshSubdivision</a></li>
<li>ExtrudeToPointCenter()&#160;:&#160;<a class="el" href="class_mola_1_1_mesh_subdivision.html#ab03fe6002a5226c66364ef177f75269d">MeshSubdivision</a></li>
</ul>
Expand Down
1 change: 1 addition & 0 deletions functions_func.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ <h3><a id="index_c" name="index_c"></a>- c -</h3><ul>

<h3><a id="index_e" name="index_e"></a>- e -</h3><ul>
<li>Extrude()&#160;:&#160;<a class="el" href="class_mola_1_1_mesh_subdivision.html#a740b83a5e3882e80260b40d77ec5780e">MeshSubdivision</a></li>
<li>ExtrudeAlongVec()&#160;:&#160;<a class="el" href="class_mola_1_1_mesh_subdivision.html#a26b99635f7ebb469061e67e72241c342">MeshSubdivision</a></li>
<li>ExtrudeTapered()&#160;:&#160;<a class="el" href="class_mola_1_1_mesh_subdivision.html#a01eba07f22ef9487188a6910bd15fd5b">MeshSubdivision</a></li>
<li>ExtrudeToPointCenter()&#160;:&#160;<a class="el" href="class_mola_1_1_mesh_subdivision.html#ab03fe6002a5226c66364ef177f75269d">MeshSubdivision</a></li>
</ul>
Expand Down
5 changes: 3 additions & 2 deletions search/all_1.js

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

5 changes: 3 additions & 2 deletions search/functions_1.js

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

0 comments on commit 7a89f5a

Please sign in to comment.