public Edge CreateEdge(Point lSite, Point rSite, Point va, Point vb) { Edge edge = new Edge(lSite, rSite); this.edges.Add(edge); if (va) { edge.SetStartPoint(lSite, rSite, va); } if (vb) { edge.SetEndPoint(lSite, rSite, vb); } this.cells[lSite.id].halfEdges.Add(new HalfEdge(edge, lSite, rSite)); this.cells[rSite.id].halfEdges.Add(new HalfEdge(edge, rSite, lSite)); return(edge); }
public Edge CreateEdge(Point lSite, Point rSite, Point va, Point vb) { Edge edge = new Edge(lSite, rSite); this.edges.Add(edge); if (va) { edge.SetStartPoint(lSite, rSite, va); } if (vb) { edge.SetEndPoint(lSite, rSite, vb); } this.cells[lSite.id].halfEdges.Add(new HalfEdge(edge, lSite, rSite)); this.cells[rSite.id].halfEdges.Add(new HalfEdge(edge, rSite, lSite)); return edge; }