title: How to use MIConvexHull library
body: <p>I am currently trying to implement convex hull calculation for my project and therefore, I installed the <a href="https://www.nuget.org/packages/MIConvexHull/" rel="nofollow noreferrer">https://www.nuget.org/packages/MIConvexHull/</a> NuGet package. (This project is a convex hull algorithm and library for 2D, 3D, and higher dimensions.) Here is the link to the github page: <a href="https://github.com/DesignEngrLab/MIConvexHull" rel="nofollow noreferrer">https://github.com/DesignEngrLab/MIConvexHull</a> </p>
  
  <p>This is how far I have come and what I have done/understood so far:
  For creating the convex hull, you need a list of vertices and then a convex hull is basically a list of vertices and a list of faces. So here is how I currently try to implement it. </p>
  
  <pre><code>List&lt;Vertex&gt; MI_convexHullVertices = new List&lt;Vertex&gt;();
  
  var MI_convexHull = MIConvexHull.ConvexHull.Create&lt;Vertex, Face&gt;(vertices);
  </code></pre>
  
  <p>For this code, I get a lot of compiler errors though because there is no Vertex and no Face class. And I now don't know what to use here.</p>
  
  <p>This is a part from the <code>ConvexHull</code> class inside ConvexHull.cs:</p>
  
  <pre><code>    public static ConvexHull&lt;TVertex, TFace&gt; Create&lt;TVertex, TFace&gt;(IList&lt;TVertex&gt; data,
          double PlaneDistanceTolerance = Constants.DefaultPlaneDistanceTolerance)
          where TVertex : IVertex
          where TFace : ConvexFace&lt;TVertex, TFace&gt;, new()
      {
          return ConvexHull&lt;TVertex, TFace&gt;.Create(data, PlaneDistanceTolerance);
      }
  </code></pre>
  
  <p><strong>And now here comes my question: Can someone explain to me what TVertex and TFace is? And after that, how to use the code?</strong> </p>
  
  <p>I feel like it has something to do with generic data types, like <code>TVertex</code> isn't a real type, but what exactly is it and what real class/type can I use to actually implement convex hull calculation?</p>
  
  <p>The thing is, I don't know the syntax at the end there. </p>