checkpoint
authoradam <adam@megacz.com>
Mon, 26 Nov 2007 03:51:32 +0000 (19:51 -0800)
committeradam <adam@megacz.com>
Mon, 26 Nov 2007 03:51:32 +0000 (19:51 -0800)
darcs-hash:20071126035132-5007d-510fcacbadfc4850ef0960ac79091ffb2b72bb8f.gz

src/Main.java

index df0aaf7..1e496ea 100644 (file)
@@ -57,7 +57,17 @@ public class Main implements GLEventListener {
     public static void main(String[] s) throws Exception {
         stlf = new StlFile();
         stlf.load("teapot.stl");
+
         Main main = new Main();
+
+        Geom geom = new Geom();
+        for(int i=0; i<stlf.coordArray.length; i+=3) {
+            for(int j=0; j<3; j++)
+                geom.newP(stlf.coordArray[i+j].x,
+                          stlf.coordArray[i+j].y,
+                          stlf.coordArray[i+j].z);
+        }
+
         Frame f = new Frame();
         GLCapabilities glcaps = new GLCapabilities();
         GLCanvas glcanvas = new GLCanvas();