Flipping mesh edge with c#

I had read some method on how to swap mesh edges, but a mathematical level, so I try and avoid reinventing the wheel if not necessary…so my question is probably pretty basic:

anyone has already dealt with some mesh edge swapping like the ‘_SwapMeshEdge’ command but in c# and has some hint to share?

thanks in advance


This is the method in C#

Thanks very much Daniel

1 Like

btw. you can get the orientation of the edges like this:

 bool[] sameOrientation;
      var edgeIndices = MTE.GetEdgesForFace(i, out sameOrientation);
1 Like

thanks @Baris for that helpful snippet!

1 Like