Torus

Torus shape provides several adjustable parameters that may change it appearance significantly. The properties are:

  • Size - controls the size of the torus (its main radius)
  • Thickness - controls the thickness of the torus
  • Segments - the number of segments along the torus. Set to 3 to get a triangle.
  • Sides - the number of segments across the torus, defines the shape of crossection.

Basically, the larger numbers you use for Segments and Sides, the smoother shape you get.

Scripting

Here is a sample script that creates a torus object:

var m = scene.root.addMesh("torus", "generator.simple.Torus");
var g = m.generator;
g.size = 30;
g.thickness = 5;
g.segments = 32;
g.sides = 16;