public ECEdge(ECVertex v1, ECVertex v2) { this.v1 = v1; v1.LinkEdge(this); AdjFace = new List <ECFace>(2); twin = new ECEdge(this, v2); }
public void ReplacePoint(ECVertex from, ECVertex to) { if (OrgV() == from) { v1 = to; to.LinkEdge(this); } else if (DestV() == from) { twin.v1 = to; to.LinkEdge(twin); } else { throw new Exception(); } for (int i = 0; i < AdjFace.Count; i++) { AdjFace[i].MarkPlaneInvalid(); } }