#include "colors.inc" camera { location <0, 0, 15> look_at <0, 0, 0> rotate <0,(180*cos(clock)) + 90,0> } light_source { <1, 10, 10> color White} # declare wave = sphere_sweep{ # declare NumOfPnts = 100; # declare PntsPerInch= 5; # declare Radius = .1; # declare Amplitude = 1; cubic_spline NumOfPnts, # declare A = 0; # while (A < NumOfPnts) # declare Y = Amplitude*sin(A/PntsPerInch); # declare Z = Amplitude*cos(A/PntsPerInch); <((A-NumOfPnts/2)/PntsPerInch), Y, Z> Radius # declare A = A + 1; #end } cylinder{ <-10, 0, 0>, <10, 0, 0> .05 pigment{color Green}} cylinder{ <0, -2, 0>, <0, 2, 0> .05 pigment{color Green}} cylinder{ <0, 0, 2>, <0, 0, -2> .05 pigment{color Green}} # declare ticks = -10; # while(ticks < 10) cylinder {, .050005 pigment{color Blue}} # declare ticks = ticks + 1; # end # declare ticks = -2; # while(ticks < 2.1) cylinder {<0, ticks-.05, 0>, <0, ticks+.05, 0> .050005 pigment{color Blue}} cylinder {<0, 0, ticks-.05>, <0, 0, ticks+.05> .050005 pigment{color Blue}} # declare ticks = ticks + 1; # end object{wave translate<.5, 0, 0> pigment{color Red}}