checkpoint
authoradam <adam@megacz.com>
Sun, 16 Dec 2007 07:01:05 +0000 (23:01 -0800)
committeradam <adam@megacz.com>
Sun, 16 Dec 2007 07:01:05 +0000 (23:01 -0800)
darcs-hash:20071216070105-5007d-275c65b9e4837b5f4414734f51fa068acc2f175e.gz

src/edu/berkeley/qfat/Mesh.java

index babad37..a2e175b 100644 (file)
@@ -175,11 +175,13 @@ public class Mesh implements Iterable<Mesh.T> {
         } 
 
         public void checkLegality() {
+            /*
             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;
+                if (e.t.aspect() < 0.1) illegal = true;
             }
+            */
             if (!illegal) triangles.range(oldp, this.p, (Visitor<T>)this);
         }
 
@@ -339,8 +341,8 @@ public class Mesh implements Iterable<Mesh.T> {
                  p2.p.distance(error_against.nearest(p2.p).p))/2;
             return nearest_distance/other_distance;
             */
-            //return length();
-            return t==null?0:(1/t.aspect());
+            return length();
+            //return t==null?0:(1/t.aspect());
         }
         public int compareTo(E e) {
             return e.comparator() > comparator() ? 1 : -1;