/** * Creates a new quadedge, recording it in the edges list. * * @param o * @param d * @return a new quadedge */ public QuadEdge makeEdge(Vertex o, Vertex d) { QuadEdge q = QuadEdge.makeEdge(o, d); quadEdges.add(q); return q; }
/** * Creates a new QuadEdge connecting the destination of a to the origin of * b, in such a way that all three have the same left face after the * connection is complete. Additionally, the data pointers of the new edge * are set. * * @return the connected edge. */ public static QuadEdge connect(QuadEdge a, QuadEdge b) { QuadEdge e = makeEdge(a.dest(), b.orig()); splice(e, a.lNext()); splice(e.sym(), b); return e; }