Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
methods don't work yet
  • Loading branch information
cor11004 committed Dec 15, 2015
1 parent 284754e commit 9669476
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion main/HalfEdge.pde
Expand Up @@ -284,7 +284,7 @@ public class HalfEdge {
HalfEdge h2 = new HalfEdge(p2, p3);
HalfEdge h3 = new HalfEdge(p3, p4);
HalfEdge h4 = new HalfEdge(p4, p1);
return CompGeo.inside(h, new Point(x, y), farAway);
return CompGeo.inside(h1, new Point(x, y), farAway);
}

public ArrayList<HalfEdge> getAllLeaving() {
Expand Down
11 changes: 8 additions & 3 deletions main/main.pde
Expand Up @@ -188,7 +188,7 @@ void mouseReleased() {


public void colorFace(float x, float y) {
// get halfEdge
HalfEdge h = list.getHalfEdgeBySinglePoint(x,y,20);
if(h != null) {
Face f = new Face(h, list);
f.printFace();
Expand Down Expand Up @@ -340,9 +340,14 @@ public void removePointMode(float x, float y) {


public void removeEdgeMode(float x, float y) {
//get edge
h.Remove();
System.out.println("entered remove edge");
HalfEdge h = list.getHalfEdgeBySinglePoint(x,y,20);
if(h != null) {
System.out.println("h is not null");
h.Remove();
}
}

/*public void removeEdgeMode(float x, float y) {
if(removeEdge) {
for(Point p: list.getPoints()) {
Expand Down

0 comments on commit 9669476

Please sign in to comment.