checkpoint autogen tile
[anneal.git] / src / edu / berkeley / qfat / MeshViewer.java
index c7f9d76..e8f4586 100644 (file)
@@ -151,6 +151,7 @@ public class MeshViewer implements GLEventListener, MouseListener, MouseMotionLi
     public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height) { }
     public void displayChanged(GLAutoDrawable drawable, boolean modeChanged, boolean deviceChanged) { }
     public void display(GLAutoDrawable drawable) {
+
         if (translations==null) return;
 
         glcanvas.setSize(f.getWidth(), f.getHeight() - 100);
@@ -198,6 +199,7 @@ public class MeshViewer implements GLEventListener, MouseListener, MouseMotionLi
         gl.glColor4f(1,1,1,1);
         for(Matrix m : translations) {
             //if (v1.z==0 && v1.y==0) continue;
+            //if (i>0) continue;
             i++;
             /*
             Point p = new Point(0, 0, 0).times(m);
@@ -239,7 +241,12 @@ public class MeshViewer implements GLEventListener, MouseListener, MouseMotionLi
                 case 5: gl.glColor4f((float)0.25, (float)0.75, (float)0.75, (float)0.3); break;
                 case 6: gl.glColor4f((float)0.75, (float)0.25, (float)0.75, (float)0.3); break;
             }
-            //gl.glColor4f((float)0.75, (float)0.25, (float)0.25, (float)0.3);
+            /*
+            if (t.e1().pair.t==null) gl.glColor4f((float)0.25, (float)0.25, (float)0.75, (float)0.3);
+            else if (t.e2().pair.t==null) gl.glColor4f((float)0.25, (float)0.25, (float)0.75, (float)0.3);
+            else if (t.e3().pair.t==null) gl.glColor4f((float)0.25, (float)0.25, (float)0.75, (float)0.3);
+            else  gl.glColor4f((float)0.75, (float)0.25, (float)0.25, (float)0.3);
+            */
             //gl.glBegin(GL.GL_LINES);
 
             if (triangles) {