- Mesh.Vert ltf = tile.register(new Point(-(width/2), (height/2), (depth/2)));
- Mesh.Vert mtf = tile.register(new Point( 0.0, (height/2), (depth/2)));
- Mesh.Vert rtf = tile.register(new Point( (width/2), (height/2), (depth/2)));
- Mesh.Vert ltn = tile.register(new Point(-(width/2), (height/2), -(depth/2)));
- Mesh.Vert mtn = tile.register(new Point( 0.0, (height/2), -(depth/2)));
- Mesh.Vert rtn = tile.register(new Point( (width/2), (height/2), -(depth/2)));
- Mesh.Vert lbf = tile.register(new Point(-(width/2), -(height/2), (depth/2)));
- Mesh.Vert mbf = tile.register(new Point( 0.0, -(height/2), (depth/2)));
- Mesh.Vert rbf = tile.register(new Point( (width/2), -(height/2), (depth/2)));
- Mesh.Vert lbn = tile.register(new Point(-(width/2), -(height/2), -(depth/2)));
- Mesh.Vert mbn = tile.register(new Point( 0.0, -(height/2), -(depth/2)));
- Mesh.Vert rbn = tile.register(new Point( (width/2), -(height/2), -(depth/2)));
+ /*
+ translations = new Matrix[] {
+
+ //Matrix.translate(new Vec(lshift, depth, halfup)),
+ //Matrix.translate(new Vec(rshift, depth, halfup)),
+ //Matrix.translate(new Vec(lshift, -depth, halfup)),
+ //Matrix.translate(new Vec(rshift, -depth, halfup)),
+
+
+ //Matrix.translate(new Vec(0, depth, 0)).times(Matrix.rotate(new Vec(0, 0, 1), (float)Math.PI)),
+ //Matrix.translate(new Vec(0, -depth, 0)).times(Matrix.rotate(new Vec(0, 0, 1), (float)Math.PI)),
+
+ Matrix.translate(new Vec(0, 0, height)).times(Matrix.rotate(new Vec(0, 0, 1), (float)Math.PI)),
+ Matrix.translate(new Vec(0, 0, -height)).times(Matrix.rotate(new Vec(0, 0, 1), (float)Math.PI)),
+
+ //Matrix.translate(new Vec(0, depth, 0)),
+ //Matrix.translate(new Vec(0, -depth, 0)),
+ //Matrix.translate(new Vec(0, 0, height)),
+ //Matrix.translate(new Vec(0, 0, -height)),
+
+ //Matrix.translate(new Vec(lshift, depth, height/2)),
+ //Matrix.translate(new Vec(lshift, depth, -height/2)),
+ //Matrix.translate(new Vec(rshift, -depth, height/2)),
+ //Matrix.translate(new Vec(rshift, -depth, -height/2)),
+ //Matrix.translate(new Vec(rshift, 0, height)),
+ //Matrix.translate(new Vec(rshift, 0, -height)),
+
+ Matrix.translate(new Vec( width, 0, 0)),
+ Matrix.translate(new Vec(-width, 0, 0)),
+
+ };
+ */
+ //
+
+
+ //generateTile(translations, tile);
+
+ Point ltf = new Point(lshift, (depth/2), (height/2));
+ Point mtf = new Point( 0.0, (depth/2), (height/2));
+ Point rtf = new Point(rshift, (depth/2), (height/2));
+ Point lbf = new Point(lshift, -(depth/2), (height/2));
+ Point mbf = new Point( 0.0, -(depth/2), (height/2));
+ Point rbf = new Point(rshift, -(depth/2), (height/2));
+
+ Point ltc = new Point(lshift, (depth/2), 0);
+ Point mtc = new Point( 0.0, (depth/2), 0);
+ Point rtc = new Point(rshift, (depth/2), 0);
+ Point lbc = new Point(lshift, -(depth/2), 0);
+ Point mbc = new Point( 0.0, -(depth/2), 0);
+ Point rbc = new Point(rshift, -(depth/2), 0);
+
+ Point ltn = new Point(lshift, (depth/2), -(height/2));
+ Point mtn = new Point( 0.0, (depth/2), -(height/2));
+ Point rtn = new Point(rshift, (depth/2), -(height/2));
+ Point lbn = new Point(lshift, -(depth/2), -(height/2));
+ Point mbn = new Point( 0.0, -(depth/2), -(height/2));
+ Point rbn = new Point(rshift, -(depth/2), -(height/2));
+