projects
/
anneal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d0a170a
)
checkpoint
author
adam
<adam@megacz.com>
Sun, 16 Dec 2007 02:11:12 +0000
(18:11 -0800)
committer
adam
<adam@megacz.com>
Sun, 16 Dec 2007 02:11:12 +0000
(18:11 -0800)
darcs-hash:
20071216021112
-5007d-
e6027157b0383a779cafc86c9fad45379601445b
.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
48fb47b
..
15cd3fc
100644
(file)
--- a/
src/edu/berkeley/qfat/Mesh.java
+++ b/
src/edu/berkeley/qfat/Mesh.java
@@
-295,15
+295,13
@@
public class Mesh implements Iterable<Mesh.T> {
good = true;
good = true;
-
- E e = this.e;
- do {
+ for(E 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;
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;
- // should recompute fundamental quadrics of all vertices sharing a face, but we defer...
e.p2.quadricStale = true;
e = e.pair.next;
e.p2.quadricStale = true;
e = e.pair.next;
- } while(e != this.e);
+ if (e==this.e) break;
+ }
if (!ignorecollision && good) triangles.range(oldp, this.p, (Visitor<T>)this);
if (!ignorecollision && good) triangles.range(oldp, this.p, (Visitor<T>)this);