/** 
  Description: A Rubics Cube
  Object Name: Rubic_Cube
  Sub-parts  : Part, Label
  Textures   : Part_Texture, Label_Texture
  Position   : Center of cube is at origin
  Requires   : colors.inc
  Comments   : Alter A to affect roundiness of cubes.
               Alter B to change no. blocks in cube.
**/

#declare A=0.15
#declare B = -1

#declare Label=intersection{
  superellipsoid{}
  box{<-1,-1,-0.05><1,1,0.05>} // Label Thickness
  scale 0.7                    // Label Size 
}

#declare Piece=object{
  superellipsoid{}
  texture{
    pigment { color rgb<0.3,0.3,0.3> }
    finish { phong 1 ambient 0.3}
  }
}

// The top layer
#declare Rubic_Three =union{
  #declare Count = B
  #while (Count 

    Source: geocities.com/siliconvalley/sector/1057

               ( geocities.com/siliconvalley/sector)                   ( geocities.com/siliconvalley)