checkpoint
[anneal.git] / 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();