hwI3DViewCtrl RotateClockwise

Rotates the model clockwise about an axis perpendicular to the screen.

Syntax

viewControl_handle RotateClockwise ?angle?

Application

HyperView Tcl Modify

Description

This command allows you to rotate the model clockwise about an axis oriented perpendicular to the screen. The rotation angle, in degrees, can be specified. If it is not specified, the default rotation angle set using the SetRotationAngle command is used.

Inputs

angle
The rotation angle, in degrees.

Example

To rotate the model by 15 degrees:
 hwi OpenStack;
    variable t [expr rand()];

    catch {
        hwi GetSessionHandle sess$t;
        sess$t GetProjectHandle proj$t;
        proj$t GetPageHandle page$t [proj$t GetActivePage];
        page$t GetWindowHandle win1$t 1;
        page$t GetWindowHandle win2$t 2;
        win1$t GetViewControlHandle vc1$t;
        vc1$t RotateClockwise 15;
    }
    hwi CloseStack;

Error

Returns HW_IllegalOp if the client window does not support this command.