I'm trying to visualise the rings of Saturn. To do this, I have created an extrusion of a circle with a concentric circular cutout. The extrusion is of negligeable thickness since the rings are so thin compared to the radius of the planet. My issue arises when attempting to apply a texture to my extrusion.
#PLANET
saturn = sphere(pos=vector(0,0,0), texture='saturnmap.jpg', radius=1)
#RINGS
outer_circ = shapes.circle(radius=1.116*saturn.radius)
inner_circ = shapes.circle(radius=2.327*saturn.radius)
ring_thickness = 8.29e-6
expath = [vec(0,0,-ring_thickness/2), vec(0,0,ring_thickness/2)]
ex = extrusion(path=expath,shape=[outer_circ,inner_circ],texture='saturn_circle.png')
I have attempted to apply two textures:
2. A "circular" texture, which is the radial texture from above which I have tiled (revolved) into a circle using inkscape
In both cases, the texture does not conform to the circular shape. Are there any options I can use in vpython in order to force the texture to apply in a circle? Alternatively, is there a way that I can format the texture image, so that it will apply correctly to my shape?
Thank you,
Stefan