|
215 | 215 | <tr class="memdesc:afad0d2e4a3efc39d19c6c03f1013b452"><td class="mdescLeft"> </td><td class="mdescRight">Constructs a <a class="el" href="classdrake_1_1geometry_1_1_triangle_surface_mesh.html" title="TriangleSurfaceMesh represents a union of triangles.">TriangleSurfaceMesh</a> from triangles and vertices. <br /></td></tr> |
216 | 216 | <tr class="memitem:a505ea28f0f6274285a379c870c44bb37" id="r_a505ea28f0f6274285a379c870c44bb37"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#a505ea28f0f6274285a379c870c44bb37">TransformVertices</a> (const <a class="el" href="classdrake_1_1math_1_1_rigid_transform.html">math::RigidTransform</a>< T > &X_NM)</td></tr> |
217 | 217 | <tr class="memdesc:a505ea28f0f6274285a379c870c44bb37"><td class="mdescLeft"> </td><td class="mdescRight">(Internal use only) Transforms the vertices of this mesh from its initial frame M to the new frame N. <br /></td></tr> |
| 218 | +<tr class="memitem:a3a59b74bbd62aaf5627afe8527df756d" id="r_a3a59b74bbd62aaf5627afe8527df756d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="#a4635cbdcb02988477b2dbaaf5e9f6dbd">TriangleSurfaceMesh</a>< T > </td><td class="memItemRight" valign="bottom"><a class="el" href="#a3a59b74bbd62aaf5627afe8527df756d">CreateScaledMesh</a> (const <a class="el" href="namespacedrake.html#a0ad29daab565ce347c4d1c5aae6a76c2">Vector3</a>< double > &scale) const</td></tr> |
| 219 | +<tr class="memdesc:a3a59b74bbd62aaf5627afe8527df756d"><td class="mdescLeft"> </td><td class="mdescRight">(Internal use only) Given a scale factor, creates a new mesh with scaled vertices. <br /></td></tr> |
218 | 220 | <tr class="memitem:a3c9e33a8f7704980ea0a0f3a4455eaf7" id="r_a3c9e33a8f7704980ea0a0f3a4455eaf7"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#a3c9e33a8f7704980ea0a0f3a4455eaf7">ReverseFaceWinding</a> ()</td></tr> |
219 | 221 | <tr class="memdesc:a3c9e33a8f7704980ea0a0f3a4455eaf7"><td class="mdescLeft"> </td><td class="mdescRight">(Internal use only) Reverses the ordering of all the triangles' indices – see <a class="el" href="classdrake_1_1geometry_1_1_surface_triangle.html#abbf26ae8eecf8c41273ed83dd213cbf1" title="Reverses the order of the vertex indices – this essentially flips the triangle normal based on the ri...">SurfaceTriangle::ReverseWinding()</a>. <br /></td></tr> |
220 | 222 | <tr class="memitem:ae6766e91c9d53192a3ed51298a193827" id="r_ae6766e91c9d53192a3ed51298a193827"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="#ae6766e91c9d53192a3ed51298a193827">num_triangles</a> () const</td></tr> |
@@ -544,6 +546,34 @@ <h2 class="memtitle"><span class="permalink"><a href="#a3c4c114c452d2aecee2b06bc |
544 | 546 | <p>The returned value is the position vector p_MSc from M's origin to the centroid Sc, expressed in frame M. (M is the frame in which this mesh's vertices are measured and expressed.) Note that the centroid is not necessarily a point on the surface. If the total mesh area is exactly zero, we define the centroid to be (0,0,0).</p> |
545 | 547 | <p>The centroid location is calculated <em>per face</em> not <em>per vertex</em> so is insensitive to whether vertices are shared by triangles. </p> |
546 | 548 |
|
| 549 | +</div> |
| 550 | +</div> |
| 551 | +<a id="a3a59b74bbd62aaf5627afe8527df756d" name="a3a59b74bbd62aaf5627afe8527df756d"></a> |
| 552 | +<h2 class="memtitle"><span class="permalink"><a href="#a3a59b74bbd62aaf5627afe8527df756d">◆ </a></span>CreateScaledMesh()</h2> |
| 553 | + |
| 554 | +<div class="memitem"> |
| 555 | +<div class="memproto"> |
| 556 | +<div class="memtemplate"> |
| 557 | +template<class T> </div> |
| 558 | + <table class="memname"> |
| 559 | + <tr> |
| 560 | + <td class="memname"><a class="el" href="#a4635cbdcb02988477b2dbaaf5e9f6dbd">TriangleSurfaceMesh</a>< T > CreateScaledMesh </td> |
| 561 | + <td>(</td> |
| 562 | + <td class="paramtype">const <a class="el" href="namespacedrake.html#a0ad29daab565ce347c4d1c5aae6a76c2">Vector3</a>< double > &</td> <td class="paramname"><span class="paramname"><em>scale</em></span></td><td>)</td> |
| 563 | + <td> const</td> |
| 564 | + </tr> |
| 565 | + </table> |
| 566 | +</div><div class="memdoc"> |
| 567 | + |
| 568 | +<p>(Internal use only) Given a scale factor, creates a new mesh with scaled vertices. </p> |
| 569 | +<p>Negative scale factors are permitted and correspond to reflections. An odd number of negative components reflects the mesh, reversing the winding order of every triangle so that outward-facing normals remain outward-facing. Zero scale factors are permitted and flatten the mesh along that axis; triangles that collapse to zero area will have zero face normals.</p> |
| 570 | +<dl class="params"><dt>Parameters</dt><dd> |
| 571 | + <table class="params"> |
| 572 | + <tr><td class="paramname">scale</td><td>The finite scale factors for the mesh along the Mx, My, and Mz directions. </td></tr> |
| 573 | + </table> |
| 574 | + </dd> |
| 575 | +</dl> |
| 576 | + |
547 | 577 | </div> |
548 | 578 | </div> |
549 | 579 | <a id="a60ac3666a4cf443790c058708663f956" name="a60ac3666a4cf443790c058708663f956"></a> |
|
0 commit comments