Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
FIXING AUXILARY METHOD FOR REMOVAL
  • Loading branch information
JimmyBoivie authored and JimmyBoivie committed Dec 7, 2015
1 parent 3ef6e19 commit 8f54553
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion main/Face.pde
Expand Up @@ -22,4 +22,4 @@ public class Face {
System.out.println();
}

}
}
6 changes: 5 additions & 1 deletion main/HalfEdge.pde
Expand Up @@ -234,7 +234,11 @@ public class HalfEdge {
return result;
}
public HalfEdge getAnotherLeaving() {
return getprevious().gettwin();
if (this != getprevious().gettwin()) {
return getprevious().gettwin();
} else {
return null;
}
}

public ArrayList<HalfEdge> getAllLeaving() {
Expand Down
4 changes: 2 additions & 2 deletions main/main.pde
Expand Up @@ -86,10 +86,10 @@ public void setup() {
//h1.facePrint();
//drawgraph.drawGraph(list.getPoints());
//(new Face(h4, list)).printFace();
(new Face(h12, list)).printFace();
//(new Face(h12, list)).printFace();
}
void draw() {
background(255,255,255,0);
background(255);
drawgraph.drawGraph(list.getPoints());
}
void keyPressed() {
Expand Down

0 comments on commit 8f54553

Please sign in to comment.