camera position (1.65,1.55,-3.5) direction(-1.1,-2,4) vertical(0,1,0) fov(25); antialiasing(3); light color (1,.3,0,.3) direction(-1, -2,3); light color (1,.7,0,.2) position (.5, -.5, .5); light color (1,1,0,1.3) position (1.7, 1.7, 1.7); ambient(1,1,1,.05); background(0,.8,1,0.2); // define the Snowball surface Self-Similar IFS set SnowBall=( translate(0, 0, 0)+translate(1/3, 0, 0)+translate(2/3, 0, 0)+ translate(0, 0, 1/3)+ translate(2/3, 0, 1/3)+ translate(0, 0, 2/3)+translate(1/3, 0, 2/3)+translate(2/3, 0, 2/3)+ translate(1/3, 1/3, 1/3)+ translate(1/3, 0, 1/3)*rotate(0,0,1,90)+translate(2/3, 1/3, 1/3)*rotate(0,0,1,-90)+ translate(1/3, 0, 1/3)*rotate(1,0,0,-90)+translate(1/3, 1/3, 2/3)*rotate(1,0,0,90) ) scale(1/3)*SnowBall; // see also: D.Meyer,"Quasisymmetric Embedding of Self Similar Surfaces and // Origami with Rational Maps", Ann. Acad. Sci. Fenn. Math, V.27,2002,pp.461-484 // build ChinaLamp - a set consisting of 5 attractors of Snowball build ChinaLamp = (id()+translate(1,-1, 0)*rotate(0,0,1,180)+ /*translate(0,-1, 0)*rotate(1,0,0,-90)+*/ translate(0, 0, 1)*rotate(1,0,0,90)+ translate(0,-1, 0)*rotate(0,0,1,90)+translate(1, 0, 0)*rotate(0,0,1,-90) ) SnowBall;