/*A building like the Vegas Hilton. Angle of building adjustable.*/ FLOORS = 65; SEGMENT = 35; //length of one segment ANGLE = 135; //angle between wings, in degrees WIDTH = 15; SIZE = 1.0; //textures window = new UniformTexture(); window.diffuseColor.setRGB(0.3, 0.3, 0.7); window.specularity = 0.2f; window.shininess = 1.0f; light = new UniformTexture(); light.diffuseColor.setRGB(0.85, 0.85, 0.85); balc = new UniformTexture(); balc.diffuseColor.setRGB(0.3, 0.3, 0.7); //corner turn win = new Cube(SIZE, SIZE*FLOORS, SIZE); win.setTexture(window, window.getDefaultMapping(win)); balcony = new Cube(SIZE, SIZE*0.1, SIZE*1.1); balcony.setTexture(balc, balc.getDefaultMapping(balcony)); ANGLE = 180.0 - ANGLE; n = 6; r = SIZE*n*360.0/ANGLE/Math.PI/2 + SIZE/2.0; r2 = r + WIDTH*SIZE; xoffset = Math.sin(ANGLE*Math.PI/180)*r; zoffset = Math.cos(ANGLE*Math.PI/180)*r + WIDTH/2.0 - SIZE/2.0; //inside arc for (i=0; i