Spherical Zone with Manim

The sphere is of radius 4 units, it is hardcoded to the parametric equations. The parametric equations are as follows:

  • $x = r \cos \theta \sin \varphi$
  • $y = r \cos \theta \cos \varphi$
  • $z = r \cos \varphi$

If you check the code, you can see that the latitude and longitude of the sphere are reoriented. The reason is for the sphere to fit the Manim's camera settings.

The orientation of the camera was done by trial and error until I found a view that I wanted.