checkpoint
[anneal.git] / src / edu / berkeley / qfat / Mesh.java
index a2e175b..7083d76 100644 (file)
@@ -597,5 +597,17 @@ public class Mesh implements Iterable<Mesh.T> {
             return true;
         }
 
             return true;
         }
 
+        /** issue gl.glVertex() for each of the triangle's points */
+        public void glVertices(GL gl) {
+            norm().glNormal(gl);
+            Point p1 = v1().oldp;
+            Point p2 = v2().oldp;
+            Point p3 = v3().oldp;
+            if (p1==null || p2==null || p3==null) return;
+            p1.glVertex(gl);
+            p2.glVertex(gl);
+            p3.glVertex(gl);
+        }
+
     }
 }
     }
 }