add helper newT() method which does not require a colorclass
authormegacz <adam@megacz.com>
Sat, 28 Feb 2009 23:16:07 +0000 (15:16 -0800)
committermegacz <adam@megacz.com>
Sat, 28 Feb 2009 23:16:07 +0000 (15:16 -0800)
src/edu/berkeley/qfat/Mesh.java

index 1a96e7d..032457b 100644 (file)
@@ -969,6 +969,7 @@ public class Mesh implements Iterable<Mesh.T> {
     public T newT(HasPoint v1, HasPoint v2, HasPoint v3) {
         return newT(v1.getPoint(), v2.getPoint(), v3.getPoint(), null, 0);
     }
     public T newT(HasPoint v1, HasPoint v2, HasPoint v3) {
         return newT(v1.getPoint(), v2.getPoint(), v3.getPoint(), null, 0);
     }
+    public T newT(Point v1, Point v2, Point v3, Vec norm) { return newT(v1, v2, v3, norm, 1); }
     public T newT(Point v1, Point v2, Point v3, Vec norm, int colorclass) {
         if (coalesce) {
 
     public T newT(Point v1, Point v2, Point v3, Vec norm, int colorclass) {
         if (coalesce) {