title: How to draw a mesh from .obj file on a ID2D1DeviceContext object?
body: <p>I have a mesh object saved in .obj file and I want to draw the mesh using ID2D1DeviceContext object.
  I cannot find any examples on the net that does this.
  I know how to fill simple things like:</p>
  
  <pre><code>// Create a solid color D2D brush.
  ComPtr&lt;ID2D1SolidColorBrush&gt; brush;
  DX::ThrowIfFailed(
      m_d2dContext-&gt;CreateSolidColorBrush(
          DX::ConvertToColorF(color),
          &amp;brush
          )
      );
  
  // Draw a filled rectangle.
  m_d2dContext-&gt;FillRectangle(DX::ConvertToRectF(rect), brush.Get());
  </code></pre>
  
  <p>But I want to display something elegant. How do I do that?
  Thanks</p>