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();