X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2FMain.java;fp=src%2FMain.java;h=4e4dc866781d00d89a0653f6abd8e649708e96f6;hb=1a864cc577c2b31049cd46f4fd9ed703802d7d17;hp=d8e26589fe8dc9e37810963b6fae15ff61393239;hpb=113b9ec23d89a15c3d57532909e85580df4c4580;p=anneal.git diff --git a/src/Main.java b/src/Main.java index d8e2658..4e4dc86 100644 --- a/src/Main.java +++ b/src/Main.java @@ -97,23 +97,23 @@ public class Main implements GLEventListener { if ((t1.p1().plus(v).minus(t2.p1()).mag() < Geom.EPSILON) && (t1.p2().plus(v).minus(t2.p3()).mag() < Geom.EPSILON) && (t1.p3().plus(v).minus(t2.p2()).mag() < Geom.EPSILON)) { - t1.e1().bind(t2.e3()); - t1.e2().bind(t2.e2()); - t1.e3().bind(t2.e1()); + t1.e1().bind(t2.e3().pair); + t1.e2().bind(t2.e2().pair); + t1.e3().bind(t2.e1().pair); } if ((t1.p2().plus(v).minus(t2.p1()).mag() < Geom.EPSILON) && (t1.p3().plus(v).minus(t2.p3()).mag() < Geom.EPSILON) && (t1.p1().plus(v).minus(t2.p2()).mag() < Geom.EPSILON)) { - t1.e2().bind(t2.e3()); - t1.e3().bind(t2.e2()); - t1.e1().bind(t2.e1()); + t1.e2().bind(t2.e3().pair); + t1.e3().bind(t2.e2().pair); + t1.e1().bind(t2.e1().pair); } if ((t1.p3().plus(v).minus(t2.p1()).mag() < Geom.EPSILON) && (t1.p1().plus(v).minus(t2.p3()).mag() < Geom.EPSILON) && (t1.p2().plus(v).minus(t2.p2()).mag() < Geom.EPSILON)) { - t1.e3().bind(t2.e3()); - t1.e1().bind(t2.e2()); - t1.e2().bind(t2.e1()); + t1.e3().bind(t2.e3().pair); + t1.e1().bind(t2.e2().pair); + t1.e2().bind(t2.e1().pair); } } } @@ -127,6 +127,14 @@ public class Main implements GLEventListener { //mid.move(geom.new V((float)-0.05,0,0)); //mtf.move(geom.new V(0, (float)-0.05, (float)0.05)); + + + for(Geom.T t : geom) { + t.e1().dobind(); + t.e2().dobind(); + t.e3().dobind(); + } + mtf.move(geom.new V(0, (float)-0.05, (float)0.00));