From 827bd30d02ef944697b7abc044c2782ab87f41ef Mon Sep 17 00:00:00 2001 From: adam Date: Sat, 15 Dec 2007 17:48:03 -0800 Subject: [PATCH] checkpoint darcs-hash:20071216014803-5007d-687d69ff404750e884f8e8d1aad1fcc55201ac23.gz --- src/edu/berkeley/qfat/Mesh.java | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/edu/berkeley/qfat/Mesh.java b/src/edu/berkeley/qfat/Mesh.java index b518b14..ff48f42 100644 --- a/src/edu/berkeley/qfat/Mesh.java +++ b/src/edu/berkeley/qfat/Mesh.java @@ -22,8 +22,6 @@ public class Mesh implements Iterable { 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 vertices() { return vertices; } @@ -567,10 +565,6 @@ public class Mesh implements Iterable { 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 { 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; -- 1.7.10.4