SetEndPoint() public method

public SetEndPoint ( Point lSite, Point rSite, Point vertex ) : void
lSite Point
rSite Point
vertex Point
return void
Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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;
        }