X-Git-Url: http://git.megacz.com/?p=anneal.git;a=blobdiff_plain;f=src%2Fedu%2Fberkeley%2Fqfat%2FMesh.java;h=b4d9f5b0e3b4752f5838de963c1b120e1fd4439b;hp=5c913c4abef66a8a7221eadbe642675786001743;hb=26fd0ec674f521a9b53acd1d7cf4eaad1a76a1bc;hpb=9a1ec8473473464f51caeb04bd22179b977cad13 diff --git a/src/edu/berkeley/qfat/Mesh.java b/src/edu/berkeley/qfat/Mesh.java index 5c913c4..b4d9f5b 100644 --- a/src/edu/berkeley/qfat/Mesh.java +++ b/src/edu/berkeley/qfat/Mesh.java @@ -163,7 +163,8 @@ public class Mesh implements Iterable { public void reComputeErrorAround() { reComputeError(); - if (nearest_in_other_mesh != null) nearest_in_other_mesh.reComputeError(); + if (nearest_in_other_mesh != null) + nearest_in_other_mesh.reComputeError(); for(E e = this.e; e!=null; e=e.pair.next==this.e?null:e.pair.next) e.p2.reComputeError(); } @@ -189,7 +190,7 @@ public class Mesh implements Iterable { for(Vertex p = this; p != null; p = (p.bound_to==this)?null:p.bound_to) good &= p.transform(m.times(p.p), ignoreProblems); for(Vertex p = this; p != null; p = (p.bound_to==this)?null:p.bound_to) - if (good) p.reComputeErrorAround(); + if (good) { /*p.reComputeErrorAround();*/ } else p.transform(p.oldp, true); return good; }