Rounded cylinder sweep

A rounded cylinder sweep has rounded edges that give the look of a fillet at the top and bottom of the cylinder. It is constructed from a radius, height, and round radius. The radius is the distance from the center to the outer edge. The height is the distance from top to bottom. The round radius forms the rounded edge between the top and side surface, and the bottom and side surface.

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

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

roundRadius: A distance in world-coordinate units from the top of the cylinder. This distance defines where the rounded cylinder body begins.

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

      TRoundedCylinder3D roundedCylinder( 100, 150, 20 );
      roundedCylinder.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