Scale

The Scale function produces a general scaling along the x, y, and z axes. The three arguments indicate the desired scale factors along each of the three axes.

Scale( x,y,z);

Arguments

x, y, z

Scale factors along the x, y, and z axes, respectively.

Remarks

            Since Scale() is not an orthonormal transformation (is not rigid) it is not a good idea to use it in the scripts of actors you will manipulate with Shift, Spin, etc.  Imported actors, geometric actors,  and surface actors may be scaled by other means in any case.

The current matrix (see MatrixMode) is multiplied by this scale matrix, with the product replacing the current matrix. That is, if M is the current matrix and S is the scale matrix, then M is replaced with M·S.

If the matrix mode is either GL_MODELVIEW or GL_PROJECTION, all objects drawn after Scale is called are scaled. Use PushMatrix and PopMatrix to save and restore the unscaled coordinate system.

If scale factors other than 1.0 are applied to the modelview matrix and lighting is enabled, automatic normalization of normals should probably also be enabled (Enable and Disable with argument GL_NORMALIZE).

Note:  Do not call Scale between a call to Begin and the corresponding call to End.

See Also

Begin

End

MatrixMode

PushMatrix

Popmatrix

Rotate 

Translate