LibTessDotNet.Mesh.AddEdgeVertex C# (CSharp) Method

AddEdgeVertex() public method

Creates a new edge such that eNew == eOrg.Lnext and eNew.Dst is a newly created vertex. eOrg and eNew will have the same left face.
public AddEdgeVertex ( LibTessDotNet.MeshUtils.Edge eOrg ) : LibTessDotNet.MeshUtils.Edge
eOrg LibTessDotNet.MeshUtils.Edge
return LibTessDotNet.MeshUtils.Edge
        public MeshUtils.Edge AddEdgeVertex(MeshUtils.Edge eOrg)
        {
            var eNew = MeshUtils.MakeEdge(eOrg);
            var eNewSym = eNew._Sym;

            // Connect the new edge appropriately
            MeshUtils.Splice(eNew, eOrg._Lnext);

            // Set vertex and face information
            eNew._Org = eOrg._Dst;
            MeshUtils.MakeVertex(eNewSym, eNew._Org);
            eNew._Lface = eNewSym._Lface = eOrg._Lface;

            return eNew;
        }