Cylinder sweep

The cylinder sweep is swept in a circular trajectory around the axis of the cylinder. It is constructed from a radius and a height. To make the cylinder bend, create the surface and modify its u parameter.

      TCylinder3D(    GCoordinate radius, 
                      GCoordinate height, 
                      TGrafBUndle3D* adoptBundle = NIL );
radius: This distance in world-coordinate units from the center of the circular base to the rim of the base. The circular base is centered at the origin.

height: The distance in world-coordinate units from the center of the base to the top of the cylinder.

The following code fragment creates the cylinder shown above. The camera has been repositioned to show the side view.

      TCylinder3D cylinder( 100, 150 );
      cylinder.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