Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…oproject

Merging things
  • Loading branch information
JimmyBoivie authored and JimmyBoivie committed Dec 7, 2015
2 parents cedb66d + 0bbc673 commit 3ef6e19
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
1 change: 1 addition & 0 deletions main/Point.pde
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public class Point {

public void deleteEdges() {
while(ref != null) {
System.out.println("REMOVING EDGE " + ref.getOrigin() + " " + ref.gettwin().getOrigin());
ref.Remove();
}

Expand Down
18 changes: 12 additions & 6 deletions main/main.pde
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ public void setup() {
(new Face(h12, list)).printFace();
}
void draw() {
drawgraph.drawGraph(list.getPoints());
background(255,255,255,0);
drawgraph.drawGraph(list.getPoints());
}
void keyPressed() {
switch (key) {
Expand All @@ -99,14 +100,17 @@ void keyPressed() {
case 'r':
mode = 1;
break;
case 'h':
mode = 2;
break;
case 'p':
mode = 2;
mode = 3;
break;
case 'b':
mode = 3;
mode = 4;
break;
case 'g':
mode = 4;
mode = 5;
break;
}

Expand Down Expand Up @@ -158,11 +162,13 @@ public void insertMode(float x, float y) {
}

public void removePointMode(float x, float y) {
boolean removePoint= false;
System.out.println("entered remove point");
boolean removePoint = false;
Point removeThis = null;
for(Point p: list.getPoints()) {
if((p.getX() - 10 < x) && (p.getX() + + 10 > x)) {
if((p.getX() - 10 < x) && (p.getX() + 10 > x)) {
if((p.getY() - 10 < y) && (p.getY() + 10 > y)) {
System.out.println("point found");
removeThis = p;
removePoint = true;
}
Expand Down

0 comments on commit 3ef6e19

Please sign in to comment.