Revolution sweep
A revolution sweep uses a 2D curve in the xy plane that rotates about the y-axis with a rotation angle that is always 360 degrees. A revolution sweep is constructed from a revolution curve.
TRevolution3D( const TGCurve* revolutionCurve,
TGrafBundle3D* adoptBundle = NIL );
revolutionCurve: A TGCurve that defines the shape of the revolution.
The following code fragment creates the revolution shown above. The camera has been repositioned to show the side view.
TRevolutionSweep3D revolution( TGCurve(
TGPoint( 25, 75),
TGPoint( 45, 150 ),
TGPoint( 95, 125 ),
TGPoint( 70, 100) );
revolution.Draw( thePort );
Figure 183 shows the curve that when swept creates the shape of a martini glass.
You can model revolution sweeps with contoured interiors and exteriors by using a contour curve that backs up on itself as shown in Figure 184.
[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