projects
/
anneal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
37516ec
)
checkpoint
author
adam
<adam@megacz.com>
Sun, 16 Dec 2007 01:48:03 +0000
(17:48 -0800)
committer
adam
<adam@megacz.com>
Sun, 16 Dec 2007 01:48:03 +0000
(17:48 -0800)
darcs-hash:
20071216014803
-5007d-
687d69ff404750e884f8e8d1aad1fcc55201ac23
.gz
src/edu/berkeley/qfat/Mesh.java
patch
|
blob
|
history
diff --git
a/src/edu/berkeley/qfat/Mesh.java
b/src/edu/berkeley/qfat/Mesh.java
index
b518b14
..
ff48f42
100644
(file)
--- a/
src/edu/berkeley/qfat/Mesh.java
+++ b/
src/edu/berkeley/qfat/Mesh.java
@@
-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 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; }
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;
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() {
}
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 (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;
}
private boolean added = false;