Back

Toroid Geometry ⭕

A toroid is a doughnut-shaped surface of revolution generated by rotating a circle in three-dimensional space.

Parametric Equation:

x(u, v) = ( R + r ⁢ cos(v) ) ⁢ cos(u) y(u, v) = ( R + r ⁢ cos(v) ) ⁢ sin(u) z(v) = r ⁢ sin(v)

Source code:

Github

Github