class PlatonicSolid { void create() { //implemented by each solid } } class Icosahedron extends PlatonicSolid { // icosahedron float x, y, z; float radius; PVector topPoint; PVector[] topPent = new PVector[5]; PVector bottomPoint; PVector[] bottomPent = new PVector[5]; float angle = 0; float triDist; float triHt; float a, b, c; // constructor Icosahedron(float radius) { this.radius = radius; c = dist(cos(0)*radius, sin(0)*radius, cos(radians(72))*radius, sin(radians(72))*radius); b = radius; a = (float)(Math.sqrt(((c*c)-(b*b)))); triHt = (float)(Math.sqrt((c*c)-((c/2)*(c/2)))); for (int i=0; i