Skip to content

Commit

Permalink
testing code
Browse files Browse the repository at this point in the history
  • Loading branch information
cor11004 committed Dec 3, 2015
1 parent d8e1ffe commit 689bddb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main/HalfEdge.pde
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,13 @@ public class HalfEdge {
}

public void facePrint() {
System.out.println("Face Print: ");
HalfEdge e = next;
System.out.println(this);
while (e != this) {
System.out.println(e);
e = e.getnext();
}
System.out.println("");
}
}
5 changes: 5 additions & 0 deletions main/main.pde
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,15 @@ public void setup() {
list.addVertex(v4);
DrawHalfEdge draw = new DrawHalfEdge();
HalfEdge h1 = new HalfEdge(v, v1);
h1.facePrint();
HalfEdge h2 = new HalfEdge(v, v3);
h1.facePrint();
HalfEdge h3 = new HalfEdge(v, v2);
h1.facePrint();
HalfEdge h4 = new HalfEdge(v,v4);
h1.facePrint();
HalfEdge h5 = new HalfEdge(v1,v2);
h1.facePrint();
draw.drawGraph(list.getVertexList());
}
/*public void draw() {
Expand Down

0 comments on commit 689bddb

Please sign in to comment.