Next: Scale Operation Up: Solid Edit: Alter Previous: Translate Operation

## Rotate Operation

Figure (est-xrot): Torus Solid Edit Rotation about X

`mged> Select the ``Rotate'' entry in the solid edit menu
mged> p 45 0 0
mged>`

The torus is rotated 45 degrees counter-clockwise about the positive X axis. The coordinates of the points I and H are transformed using the following matrix:

    [x'] [1   0      0   ] [x]
        [y']=[0  .7071 -.7071] [y]
        [z'] [0  .7071  .7071] [z]

See Figure (est-xrot) .

Figure (est-yrot): Torus Solid Edit Rotation about Y

`mged> p 0 45 0
mged>`

The torus is rotated 45 degrees counter-clockwise about the positive Y axis. See Figure (est-yrot) .

Figure (est-zrot): Torus Solid Edit Rotation about Z

`mged> p 0 0 45
mged>`

The torus is rotated 45 degrees counter-clockwise about the positive Z axis. See Figure (est-zrot) . The original orientation is restored by entering

`mged> p 0 0 0
mged>`