diff --git a/main/HalfEdge.pde b/main/HalfEdge.pde index 1d1f5a4..7808d08 100644 --- a/main/HalfEdge.pde +++ b/main/HalfEdge.pde @@ -43,6 +43,7 @@ public class HalfEdge { twin.setprevious(try2[0]); next = try2[1]; } + System.out.println(this); // Set Nexts // Set Prevs @@ -116,6 +117,9 @@ public class HalfEdge { return counted; } + public String toString() { + return "Origin: " + vertex.toString() + "\nDestination: " + twin.getOrigin().toString(); + } public HalfEdge gettwin() { return twin; @@ -135,4 +139,13 @@ public class HalfEdge { public void setIncidentFace(Face f) { incidentFace = f; } + + public void facePrint() { + HalfEdge e = next; + System.out.println(this); + while (e != this) { + System.out.println(e); + e = e.getnext(); + } + } } \ No newline at end of file