projects
/
anneal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
57f53f0
)
checkpoint
author
adam
<adam@megacz.com>
Sun, 16 Dec 2007 02:13:30 +0000
(18:13 -0800)
committer
adam
<adam@megacz.com>
Sun, 16 Dec 2007 02:13:30 +0000
(18:13 -0800)
darcs-hash:
20071216021330
-5007d-
a8a8a4cae25900978bd6f87c06d5934a72434cbe
.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
15cd3fc
..
88e6d04
100644
(file)
--- a/
src/edu/berkeley/qfat/Mesh.java
+++ b/
src/edu/berkeley/qfat/Mesh.java
@@
-295,12
+295,10
@@
public class Mesh implements Iterable<Mesh.T> {
good = true;
- for(E e = this.e; ;) {
+ for(E e = null; e!=this.e; e=e.pair.next) { if (e==null) e = this.e;
if (Math.abs(e.crossAngle()) > (Math.PI * 0.9) || Math.abs(e.next.crossAngle()) > (Math.PI * 0.9)) good = false;
if (e.t.aspect() < 0.1) good = false;
e.p2.quadricStale = true;
- e = e.pair.next;
- if (e==this.e) break;
}
if (!ignorecollision && good) triangles.range(oldp, this.p, (Visitor<T>)this);