package graphics; public class Cube extends Shape { //not using parent.init, so implement it here public Cube() { this.matrix = new Matrix3D(); this.center = new double[3]; double[][] vertices2 = { {-1,-1, 1}, { 1,-1, 1}, { 1, 1, 1}, {-1, 1, 1}, {-1,-1,-1}, {-1,-1, 1}, {-1, 1, 1}, {-1, 1,-1}, {-1, 1,-1}, { 1, 1,-1}, { 1,-1,-1}, {-1,-1,-1}, { 1, 1, 1}, { 1,-1, 1}, { 1,-1,-1}, { 1, 1,-1}, {-1,-1, 1}, { 1,-1, 1}, { 1,-1,-1}, {-1,-1,-1}, {-1, 1, 1}, { 1, 1, 1}, { 1, 1,-1}, {-1, 1,-1} }; this.vertices = vertices2; int[][] faces2 = { { 0, 1, 2, 3}, { 4, 5, 6, 7}, { 8, 9,10,11}, {12,13,14,15}, {16,17,18,19}, {20,21,22,23} }; this.faces = faces2; } public Object clone() { Cube newCube = new Cube(); for (int i=0; i