Figure 20 shows a torus.
Vector3D orientation
Vector3D majorRadius
Vector3D minorRadius
Point3D origin
Float32 ratio
Float32 uMin
Float32 uMax
Float32 vMin
Float32 vMax
A torus is a three-dinensional object formed by the rotation of an ellipse about an axis in the plane of the ellipse that does not cut the ellipse. The major and minor radii of the torus are the distance of the center of the ellipse from that axis.
The default surface parameterization for a torus is as shown in Figure 21 .
Figure 21 The defalt surface parameterization of a torus
Container (
Torus (
0 .2 0 #orientation
1 0 0 #majorRadius
0 0 1 #minorRadius
0 0 0 #origin
.5 #ratio
0 #uMin
1 #uMax
0 #vMin
1 #vMax
)
Container (
AttributeSet ( )
DiffuseColor (1 1 0)
)
)