Vizard 7 » Command Index » Vizard objects » window » <window>.frustum
7.6

<window>.frustum

Set the frustum of the window's projection matrix

<window>.frustum(  
left,right,bottom,top,near,far  
eye = viz.BOTH_EYE  
)  
left,right,bottom,top,near,far
Specifies the clipping plane coordinates of the frustum.
eye = viz.BOTH_EYE
The eye to apply the frustum 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 sets the projection matrix of the window similar to the OpenGL command glFrustum.

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

See also

<window>.clip
<window>.fov
<window>.ortho
<window>.setProjectionMatrix