Solution Review: Plotting Torus

This lesson discusses the solution of the plotting torus exercise.

We'll cover the following

Solution

A torus is defined by the following equation:

x(θ,ϕ)=(R+rcosθ)cosϕx(\theta, \phi)=(R+rcos\theta)cos\phi

y(θ,ϕ)=(R+rcosθ)sinϕy(\theta, \phi)=(R+rcos\theta)sin\phi

z(θ,ϕ)=rsinθz(\theta, \phi)=rsin\theta

Get hands-on with 1200+ tech skills courses.