checkpoint
[anneal.git] / src / edu / berkeley / qfat / Mesh.java
index b518b14..ff48f42 100644 (file)
@@ -22,8 +22,6 @@ public class Mesh implements Iterable<Mesh.T> {
     public Mesh score_against = null;
     public double score = 0;
     public float score() { return (float)score; }
-    public int numedges = 0;
-    public float avgedge = 0;
 
     public int size() { return vertices.size(); }
     public Iterable<Vert> vertices() { return vertices; }
@@ -567,10 +565,6 @@ public class Mesh implements Iterable<Mesh.T> {
             pair.next = prev;
             if (p1.e == this) p1.e = prev.next;
             if (pair.p1.e == pair) pair.p1.e = pair.prev.next;
-            avgedge -= this.length();
-            avgedge -= pair.length();
-            numedges--;
-            numedges--;
         }
 
         private void sync() {
@@ -581,11 +575,7 @@ public class Mesh implements Iterable<Mesh.T> {
             if (this.next.p1 != p2) throw new Error();
             if (this.prev.p2 != p1) throw new Error();
             if (this.p1.e == null) this.p1.e = this;
-            if (!added) {
-                added = true;
-                numedges++;
-                avgedge += length();
-            }
+            if (!added) added = true;
         }
         private boolean added = false;