torus()

Torus - Draws a Torus or Donut-like shape in 3D space

Example

Syntax

Parameter
Description

radius

radius of the ring

tubeRadius

radius of the tube

Example Full Code

Description

draws a torus (donut-like shape) with a specified radius of its ring and a specified radius of the circular cross section if its tube.

Find these documents helpful? Let the people who made them help your child learn to code at Strivemath!

We'd love to hear your Feedback/Comments here.

Last updated