title: c# Point Cloud to Mesh
body: <p>Is it possible to reconstruct a 2.5D surface from X,Y,Z points (unstructured point cloud) to triangle mesh? Is there a library available that can do this for me that I can use with C#? I can't find anything open source out of the box that has this built in function.</p>
  
  <p>First option:
  Here's the scenario. I have a CNC that I can capture position data with. I'll be scanning from a specific axis and taking measurements at specific intervals. So for instance, I move across the X axis and get a measurement every 0.5 mm. I'll have the X, Y and Z point every 0.5 mm. After I complete my X axis scan, I'll move Y by 0.05 mm and then scan across the X axis again. It seems turning this into a mesh should be pretty straight forward. A single point will always intersect with 8 triangles, except on edges which would be 4 and the connected points will be known. All X/Y's would align each 0.5 mm.</p>
  
  <p>Preferred option: 
  Would require a density estimation algorithm probably and as far as I can tell not possible without something like MatLab which I don't want to have to use.</p>
  
  <p>It would be better if I didn't have to take a measurement at consistent X axis intervals. The laser displacement sensor and associated equipment will allow me to capture point data at 50hz. I would rather take as many measurements as possible in that time period as I scan across X but its highly likely the X at the previous Y position will not align.</p>
  
  <p>In the above option I could still align the X and Y coordinates by creating a normalization algorithm.</p>
  
  <p>I can code just about anything in C#, but I know little about 3D terminology. So I apologize in advance if I'm using the wrong wording to describe what I'm trying to accomplish.</p>
  
  <p>I know something like this would be extremely useful to hobby CNC users. Once I create the mesh I can save the result to an STL, I have that part figured out.</p>