t = Tachyon(xres=500, yres=500, camera_center=(2,0,0.5)) f1 = lambda t: (0.5*cos(t)*cos(0),0.5*sin(t)*cos(0),0.5*sin(0)) f2 = lambda t: (0.5*cos(t)*cos(pi/6),0.5*sin(t)*cos(pi/6),0.5*sin(pi/6)) f3 = lambda t: (0.5*cos(t)*cos(pi/6),0.5*sin(t)*cos(pi/6),-0.5*sin(pi/6)) g0 = lambda t: (0.5*cos(0*pi/6)*cos(t),0.5*sin(0*pi/6)*cos(t),0.5*sin(t)) g1 = lambda t: (0.5*cos(1*pi/6)*cos(t),0.5*sin(1*pi/6)*cos(t),0.5*sin(t)) g2 = lambda t: (0.5*cos(2*pi/6)*cos(t),0.5*sin(2*pi/6)*cos(t),0.5*sin(t)) g3 = lambda t: (0.5*cos(-1*pi/6)*cos(t),0.5*sin(-1*pi/6)*cos(t),0.5*sin(t)) g4 = lambda t: (0.5*cos(-2*pi/6)*cos(t),0.5*sin(-2*pi/6)*cos(t),0.5*sin(t)) t.texture('t1', color = (0,0,1)) t.texture('t2', ambient=0.1, diffuse=0.6, specular=0.5, opacity=1.0, color=(1,0,0)) t.sphere((0,0,0), 0.5, 't2') t.parametric_plot(f1, 0, 6.3,'t1',r=0.005, min_depth=7,max_depth=8) t.parametric_plot(f2, 0, 6.3,'t1',r=0.005, min_depth=7,max_depth=8) t.parametric_plot(f3, 0, 6.3,'t1',r=0.005, min_depth=7,max_depth=8) t.parametric_plot(g0, 0, 6.3,'t1',r=0.005, min_depth=7,max_depth=8) t.parametric_plot(g1, 0, 6.3,'t1',r=0.005, min_depth=7,max_depth=8) t.parametric_plot(g2, 0, 6.3,'t1',r=0.005, min_depth=7,max_depth=8) t.parametric_plot(g3, 0, 6.3,'t1',r=0.005, min_depth=7,max_depth=8) t.parametric_plot(g4, 0, 6.3,'t1',r=0.005, min_depth=7,max_depth=8) show(t)