*viewset

Sets the graphics view.

Syntax

*viewset a00 a01 a02 a03 a10 a11 a12 a13 a20 a21 a22 a23 a30 a31 a32 a33 minx miny maxx maxy

Type

HyperMesh Tcl Modify Command

Description

Sets the model orientation and visable area. The current values can be queried using hm_winfo viewmatrix.

Inputs

a00-a33
The 4x4 matrix to use to define the view. The current values can be queried using hm_getcurrentview.
minx
The viewport x-axis minimum value.
miny
The viewport y-axis minimum value.
maxx
The viewport x-axis maximum value.
maxy
The viewport y-axis maximum value.

Example

To orient the model so that the z-axis is pointing out of the screen, with the max visible area set to (-0.5,-0.5) to (0.5,0.5):

*viewset 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 -0.5 -0.5 0.5 0.5

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}