checkpoint
[anneal.git] / src / edu / berkeley / qfat / geom / Triangle.java
index 7c54357..9d16661 100644 (file)
@@ -29,6 +29,12 @@ public abstract class Triangle implements HasBoundingBox {
         p2().glVertex(gl);
         p3().glVertex(gl);
     }
+    public void glVertices(GL gl, Matrix m) {
+        m.times(norm()).glNormal(gl);
+        m.times(p1()).glVertex(gl);
+        m.times(p2()).glVertex(gl);
+        m.times(p3()).glVertex(gl);
+    }
 
     /** the triangle's centroid */
     public Point centroid() {