/*équations : (1-3*x- 3*y-3*z)*(x*y+x*z+y*z)+6*x*y*z)# forme 1 x^2+y^2-x^2*z+y^2*z+z^2-1;# forme 2 */ #include "colors.inc" #include "stones.inc" #include "metals.inc" #declare r=0.008 ; #declare r1=0.02 ; camera { orthographic location <-2,0.5,-3> look_at<0,0,0> angle 50 } light_source { <-6,8,-10> color rgb <1,0.95,0.9> area_light <1,0,0>, <0,0,1>,4, 4 jitter } light_source { <5,10,-20> color rgb <1,1,1>*0.7 shadowless} light_source { <3,10,-10> color rgb <0.8,0.8,1>*0.5 shadowless} box {<-30,-1.2,-30>,<3,20,2> pigment {SkyBlue*1.2} rotate <0,0, 0> } //-------------------------------- /* */ union{ union{cylinder{<0.,4.33333,-4.>,<0.,-3.66667,4.>,r} cylinder{<-4.,4.3333,0.>,<4.,-3.666667,0.>,r} cylinder{<4.33333,0.,-4.>,<-3.666667,0.,4.>,r} pigment{ Blue*1.5 } } union{ cylinder{<-4.,4.,-.3333333>,<4.,-4.,-.333333>,r} cylinder{<-.333333,4.,-4.>,<-.333333,-4.,4.>,r} cylinder{<4.,-.333333,-4.>,<-4.,-.333333,4.>,r} pigment{ Red*1.2 } } union{cylinder{<0.,0.,-4.>,<0.,0.,4.>,r} cylinder{<0.,-4.,0.>,<0.,4.,0.>,r} cylinder{<-4.,0.,0.>,<4.,0.,0.>,r} pigment{ Green*1.2 } } union{ sphere{<1/3, 0, 0>,r1 } sphere{ <0, 0, 0>,r1 } sphere{ <0, 1/3, 0>,r1 } // sphere{ <0, 0, 1/3>,r1 } pigment {Yellow}} poly {3,<0,-3,-3,0,-3,-3,1,-3,1,0,0,-3,0,-3,1,0,0,0,0,0> texture{ pigment{ granite color_map{[0.0 rgb<1,1,0.7>][1.0 rgb<0.5,0.3,0>]} scale 0.06 } finish { ambient 0.4 diffuse 0.3 specular 0.5 roughness 0.01 } } } clipped_by { sphere{ <0.2,0.2,0.2>,1.2} } bounded_by { clipped_by } rotate <-30,60,41.5> translate <0.8,-0.35,1> } text { ttf "times.ttf" "AE" 0.5,0 pigment { White*1.3 } scale 0.08 rotate <0,40,0> translate <1.15,-1.15,-0.6> }