Vizard 8 » Command Index » Vizard objects » window » <window>.ortho
8.0

<window>.ortho

Sets the orthographic view frustum for the window.

<window>.ortho(  
left,right,bottom,top,near,far  
eye = viz.BOTH_EYE  
)  
left,right,bottom,top,near,far
Specifies the clipping plane coordinates of the orthographic projection matrix.
eye = viz.BOTH_EYE
The eye to apply the ortho values to. Can be one of the following:
viz.BOTH_EYE
viz.LEFT_EYE
viz.RIGHT_EYE

If the value is viz.LEFT_EYE or viz.RIGHT_EYE, then Vizard will NOT automatically adjust the projection marix in stereo mode.

Remarks

This command will set the projection matrix of the window to an orthographic matrix specified by the given parameters. The behavior is similar to the OpenGL glOrtho function.

If the far plane is negative, then the clip planes will automatically be computed.

Auto-compute of aspect ratio will be disabled when using this command.

Return Value

None

Example

viz.MainWindow.ortho(-1,1,-1,1,-1,1)

See also

<window>.clip
<window>.fov
<window>.frustum
<window>.setProjectionMatrix