Shapes: torus

A torus is the surface of revolution obtained by rotating an excentric sphere around an arbitrary axis. And yes: if you cover it with enough sugar, Homer Simpson could aprove it.

Syntax

You must provide the center of the torus, its outer radius, and its inner radius.

Tori in XSight RT are always aligned to the Y axis. Of course, you can always rotate a torus with a separate rotation. We have also provided internal classes to represent tori aligned along the X and the Z axis. You can't explicitly instantiate these special classes, since that's the task of the scene simplifier. You can check the scene tree if you want to ensure the simplifier is handling a given rotation as it should.

See also

Home | Small Instantiation Language reference | Scenes | Shapes | Box | Sphere | Cone | Cylinder | Blob | Polyhedra