public static DoublyConnectedEdgeList linesToDCEdgeList(LineCollection lc) { DoublyConnectedEdgeList p = new DoublyConnectedEdgeList(); Vector<Line> l = lc.getAllLines(); for (int i = 0; i < l.size(); i++) { p.addHalfEdge(new DCHalfEdge(l.get(i).start.copy(), l.get(i).end.copy())); } return p; }