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

<window>.getNearFarClip

Returns the near/far clip planes

<window>.getNearFarClip(  
eye = viz.BOTH_EYE  
)  
eye = viz.BOTH_EYE
The eye to retrieve the clip planes from. Can be viz.BOTH_EYE, viz.LEFT_EYE, or viz.RIGHT_EYE.

Remarks

Returns the near/far clip planes of the window projection matrix. If the window is set to auto compute clip planes, then the last computed clip planes will be returned.

Return Value

[near, far]

Example

# Get near/far clip planes
near, far = viz.MainWindow.getNearFarClip()

See also

<window>.clip