Sphere sweep

A sphere sweep generates a spherical surface. It is constructed from a radius.

      TSphere3D(  GCoordinate radius, 
                  TGrafBundle3D* adoptBUndle = NIL );
radius: This distance from the center of the sphere to the outside rim of the sphere. The center of the sphere is at the origin.

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

      TSphere3D sphere( 100, 25 );
      torus.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