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:
9c8449e
)
checkpoint
author
adam
<adam@megacz.com>
Sun, 16 Dec 2007 05:40:01 +0000
(21:40 -0800)
committer
adam
<adam@megacz.com>
Sun, 16 Dec 2007 05:40:01 +0000
(21:40 -0800)
darcs-hash:
20071216054001
-5007d-
43210367e778b46882f9cf687633bfb81d043107
.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
3da4835
..
1484b66
100644
(file)
--- a/
src/edu/berkeley/qfat/Mesh.java
+++ b/
src/edu/berkeley/qfat/Mesh.java
@@
-143,10
+143,11
@@
public class Mesh implements Iterable<Mesh.T> {
reinsert();
applyQuadricToNeighbor();
reinsert();
applyQuadricToNeighbor();
- if (ignoreProblems) return true;
-
- illegal = false;
- checkLegality();
+ if (!ignoreProblems) {
+ illegal = false;
+ checkLegality();
+ }
+ for(E e = this.e; e!=null; e=e.pair.next==this.e?null:e.pair.next) e.p2.quadricStale = true;
return !illegal;
}
return !illegal;
}
@@
-154,7
+155,6
@@
public class Mesh implements Iterable<Mesh.T> {
for(E e = this.e; e!=null; e=e.pair.next==this.e?null:e.pair.next) {
if (Math.abs(e.crossAngle()) > (Math.PI * 0.9) || Math.abs(e.next.crossAngle()) > (Math.PI * 0.9)) illegal = true;
if (e.t.aspect() < 0.1) illegal = true;
for(E e = this.e; e!=null; e=e.pair.next==this.e?null:e.pair.next) {
if (Math.abs(e.crossAngle()) > (Math.PI * 0.9) || Math.abs(e.next.crossAngle()) > (Math.PI * 0.9)) illegal = true;
if (e.t.aspect() < 0.1) illegal = true;
- e.p2.quadricStale = true;
}
if (illegal) triangles.range(oldp, this.p, (Visitor<T>)this);
}
}
if (illegal) triangles.range(oldp, this.p, (Visitor<T>)this);
}