#include "colors.inc"
global_settings{max_trace_level 20}
background {color White}
camera { angle 3.2
location <1000,1000,1000>
look_at <-0,0.2,0>
up < 0, 1, 0>
right < 1, 0, 0>
}
light_source { <100,90,120>
color Gray
shadowless
}
light_source { <50,70,90>
color Gray
shadowless
}
/////////////////////////////////////////////////////////////////////////////
#declare ss0 = sphere{< 10, 10, 10>,24} ///small spheres
#declare ss1 = sphere{< 10,-10,-10>,24}
#declare ss2 = sphere{<-10,-10, 10>,24}
#declare ss3 = sphere{<-10, 10,-10>,24}
#declare bs0 = sphere{< 10, 10, 10>,26} ///big spheres
#declare bs1 = sphere{< 10,-10,-10>,26}
#declare bs2 = sphere{<-10,-10, 10>,26}
#declare bs3 = sphere{<-10, 10,-10>,26}
/////////////////////////////////////////////////////////////////////////////
union {////////////////BIG UNION
#declare digitsum1 =
union
{
///1
difference
{
object{ss0}
union{ object{bs1} object{bs2} object{bs3} }
}
///2
difference
{
object{ss1}
union{ object{bs0} object{bs2} object{bs3} }
}
///4
difference
{
object{ss2}
union{ object{bs0} object{bs1} object{bs3} }
}
///8
difference
{
object{ss3}
union{ object{bs0} object{bs1} object{bs2} }
}
pigment{color rgbt<0.95,0.95,0.95,0.95>}
//pigment{color Red}
}
object{digitsum1}
#declare digitsum2 =
union
{
///3
difference
{
intersection{ object{ss0} object{ss1} }
union{ object{bs2} object{bs3} }
}
///5
difference
{
intersection{ object{ss0} object{ss2} }
union{ object{bs1} object{bs3} }
}
///6
difference
{
intersection{ object{ss1} object{ss2} }
union{ object{bs0} object{bs3} }
}
///9
difference
{
intersection{ object{ss0} object{ss3} }
union{ object{bs1} object{bs2} }
}
///10
difference
{
intersection{ object{ss1} object{ss3} }
union{ object{bs0} object{bs2} }
}
///12
difference
{
intersection{ object{ss2} object{ss3} }
union{ object{bs0} object{bs1} }
}
pigment{color rgbt<0.9,0.9,0.9,0.9>}
//pigment{color Red}
}
object{digitsum2}
#declare digitsum3 =
union
{
///7
difference
{
intersection{ object{ss0} object{ss1} object{ss2} }
object{bs3}
}
///11
difference
{
intersection{ object{ss0} object{ss1} object{ss3} }
object{bs2}
}
///13
difference
{
intersection{ object{ss0} object{ss2} object{ss3} }
object{bs1}
}
///14
difference
{
intersection{ object{ss1} object{ss2} object{ss3} }
object{bs0}
}
//pigment{color rgbt<0.85,0.85,0.85,0.85>}
pigment{color Red}
}
object{digitsum3}
///15
intersection{ object{ss0} object{ss1} object{ss2} object{ss3}
pigment{color rgbt<0.8,0.8,0.8,0.8>}
//pigment{color Red}
}
rotate -33*z
rotate 35*x
rotate 5*y
rotate <0,clock*5,0>
}/////////////////BIG UNION