Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
cor11004 committed Dec 3, 2015
2 parents e988b80 + c791f43 commit d8e1ffe
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions main/HalfEdge.pde
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public class HalfEdge {
twin.setprevious(try2[0]);
next = try2[1];
}
System.out.println(this);
// Set Nexts

// Set Prevs
Expand Down Expand Up @@ -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;
Expand All @@ -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();
}
}
}

0 comments on commit d8e1ffe

Please sign in to comment.