Hello everyone, I just realized there is no way to create a mesh face with more than 4 vertices in c#. Therefore in order to create a hexagonal face I had to split it into 2 quad face(Like the photo). is there anyway to merge this to faces into one face afterward? or is there any way to create a hexagonal face at the beginning?
var m = new Mesh();
foreach(var c in crvs)
m.Append(Mesh.CreateFromPlanarBoundary(c, MeshingParameters.Default, 0.01));
if(makeNgons)
m.Ngons.AddPlanarNgons(0.01);
Thank you very much Luis. I had tried this method before this. I should have explained more the issue. my hexagonal faces are not planar. Therefore Mesh.CreateFromPlanarBoundary does not work here.