Torus sweep

The torus sweep generates a closed cylindrical shape that is hollow in the center. It is constructed from a big radius and a small radius.

      TTorus3D(   GCoordinate bigRadius, 
                  GCoordinate smallRadius, 
                  TGrafBundle3D* adoptBundle = NIL );
bigRadius: The distance from the center of the torus to its inner edge. The center of the torus is at the origin.

smallRadius: The distance from the inner edge to the center of the tube.

The following code fragment creates the torus shown above.

      TTorus3D torus( 100, 25 );
      sphere.Draw( thePort );


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker