checkpoint
[anneal.git] / src / edu / berkeley / qfat / Mesh.java
index f7ecb4d..0a26699 100644 (file)
@@ -16,7 +16,7 @@ public class Mesh implements Iterable<Mesh.T> {
     public static float EPSILON = (float)0.0001;
     public static Random random = new Random();
 
-    private HashMap<Point,Vert>  verts = new HashMap<Point,Vert>();
+    private HashMap<Point,Vert> verts = new HashMap<Point,Vert>();
 
     public Iterable<E> edges() {
         return
@@ -170,8 +170,9 @@ public class Mesh implements Iterable<Mesh.T> {
     }
 
     public Vert register(Point p) { Vert v = verts.get(p); return v==null ? new Vert(p) : v; }
-    public final class Vert {
+    public final class Vert extends HasPoint {
         public Point p;
+        public Point getPoint() { return p; }
         private Vert(Point p) {
             this.p = p;
             if (verts.get(p) != null) throw new Error();