# C1.Util.DX.Direct2D.Mesh.Create

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Direct2D_Mesh_Create_" data-uid="C1.Util.DX.Direct2D.Mesh.Create*">Create Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Direct2D_Mesh_Create_" data-uid="C1.Util.DX.Direct2D.Mesh.Create*"></a>
<h4 id="C1_Util_DX_Direct2D_Mesh_Create_C1_Util_DX_Direct2D_RenderTarget_" data-uid="C1.Util.DX.Direct2D.Mesh.Create(C1.Util.DX.Direct2D.RenderTarget)">Create(RenderTarget)</h4>
<div class="markdown level1 summary"><p>Create a mesh that uses triangles to describe a shape.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Mesh Create(RenderTarget renderTarget)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(renderTarget As RenderTarget) As Mesh</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.RenderTarget.html">RenderTarget</a></td>
      <td><span class="parametername">renderTarget</span></td>
      <td><p>an instance of <a class="xref" href="C1.Util.DX.Direct2D.RenderTarget.html">RenderTarget</a></p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.Mesh.html">Mesh</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Util_DX_Direct2D_Mesh_Create_C1_Util_DX_Direct2D_RenderTarget__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>To populate a mesh, use its {{Open}} method to obtain an <a class="xref" href="C1.Util.DX.Direct2D.TessellationSink.html">TessellationSink</a>. To draw the mesh, use the render target's {{FillMesh}} method.</p>
</div>


<a id="C1_Util_DX_Direct2D_Mesh_Create_" data-uid="C1.Util.DX.Direct2D.Mesh.Create*"></a>
<h4 id="C1_Util_DX_Direct2D_Mesh_Create_C1_Util_DX_Direct2D_RenderTarget_C1_Util_DX_Direct2D_Triangle___" data-uid="C1.Util.DX.Direct2D.Mesh.Create(C1.Util.DX.Direct2D.RenderTarget,C1.Util.DX.Direct2D.Triangle[])">Create(RenderTarget, Triangle[])</h4>
<div class="markdown level1 summary"><p>Create a mesh that uses triangles to describe a shape and populates it with triangles.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Mesh Create(RenderTarget renderTarget, Triangle[] triangles)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(renderTarget As RenderTarget, triangles As Triangle()) As Mesh</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.RenderTarget.html">RenderTarget</a></td>
      <td><span class="parametername">renderTarget</span></td>
      <td><p>an instance of <a class="xref" href="C1.Util.DX.Direct2D.RenderTarget.html">RenderTarget</a></p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.Triangle.html">Triangle</a>[]</td>
      <td><span class="parametername">triangles</span></td>
      <td><p>An array of <a class="xref" href="C1.Util.DX.Direct2D.Triangle.html">Triangle</a> structures that describe the triangles to add to this mesh.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.Mesh.html">Mesh</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
