Ask Your Question

Revision history [back]

For each step of the (discretized) revolution process you have to define a picture, and you will glue the pictures into an animation with the animate function. Since each picture corresponds to a range of longitudes, the easiest way to do this should be to use a representation of the sphere by it spherical coordinates, so, you can use the following:

  • parametric plot 3d : https://doc.sagemath.org/html/en/reference/plot3d/sage/plot/plot3d/parametric_plot3d.html
  • spherical plot 3d : https://doc.sagemath.org/html/en/reference/plot3d/sage/plot/plot3d/plot3d.html#sage.plot.plot3d.plot3d.spherical_plot3d
  • animate : https://doc.sagemath.org/html/en/reference/plotting/sage/plot/animate.html