From: adam Date: Sun, 16 Dec 2007 05:40:01 +0000 (-0800) Subject: checkpoint X-Git-Url: http://git.megacz.com/?p=anneal.git;a=commitdiff_plain;h=a4491ca8f8b67e8693a44424c2300af10a404f17;hp=9c8449ec3a4e9a70399bbcb5cfeadea9dc18a646 checkpoint darcs-hash:20071216054001-5007d-43210367e778b46882f9cf687633bfb81d043107.gz --- diff --git a/src/edu/berkeley/qfat/Mesh.java b/src/edu/berkeley/qfat/Mesh.java index 3da4835..1484b66 100644 --- a/src/edu/berkeley/qfat/Mesh.java +++ b/src/edu/berkeley/qfat/Mesh.java @@ -143,10 +143,11 @@ public class Mesh implements Iterable { 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; } @@ -154,7 +155,6 @@ public class Mesh implements Iterable { 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)this); }