//Giant flyswatter maker // CSG union, add all of shapes 1...N union { cylinder { <-2000,18000,0> , <2000,18000,0>, 75 // open } cylinder { <-2000,14000,0> , <2000,14000,0>, 75 // open } cylinder { <-2000,14000,0> , <-2000,18000,0>, 75 // open } cylinder { <2000,14000,0> , <2000,18000,0>, 75 // open } #declare iteration=0 #while (iteration < 8) #declare iteration=iteration+1; cylinder { <-2000/iteration,14000,0> , <-2000/iteration,18000,0>, 75/iteration // open } cylinder {<2000/iteration,14000,0> , <2000/iteration,18000,0>, 75/iteration} #end /* Begin horizontals here */ #declare iteration=0; #while (iteration<8) #declare iteration=iteration+1; #declare lil=0; #declare xoo=(pow(2,iteration-1))*3; #while (lil, <-2000/(iteration+1), 14000+(4000*lil/(3*(pow(2,(iteration-1))))),0>, 35/iteration} #declare lil=lil+1; #end #end /* Start drawing other side's crss pieces */ #declare iteration=0; #while (iteration<8) #declare iteration=iteration+1; #declare lil=0; #declare xoo=(pow(2,iteration-1))*3; #while (lil, <2000/(iteration+1), 14000+(4000*lil/(3*(pow(2,(iteration-1))))),0>, 35/iteration} #declare lil=lil+1; #end #end material // Aluminum { texture { pigment { color rgb <0.489567, 0.583333, 0.708333> } } } }