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

<window>.clip

This action sets the near and far clipping distances for a particular subwindow

<window>.clip(  
near  
far  
eye = viz.BOTH_EYE  
)  
near
Specifies the near clipping distance in meters.

If viz.AUTO_COMPUTE, both near and far clip planes will be automatically computed based on the geometry in the scene.
far
Specifies the far clipping distance in meters.
eye = viz.BOTH_EYE
Can be one of the following:
viz.BOTH_EYE
viz.LEFT_EYE
viz.RIGHT_EYE

If this value is either viz.LEFT_EYE or viz.RIGHT_EYE, then the clip plane will only be set if a projection has been specified for the individual eye (i.e. using the setProjectionMatrix/frustum/ortho commands).

Remarks

Use this action to expand or reduce the size of the view frustum. Any geometry not within the view frustum is automatically culled from the scene. This can be used as an effective way to handle a large scene database without drastically affecting performance.

Return Value

None

Example

viz.MainWindow.clip(0.5, 100)

See also

<window>.fov
<window>.frustum
<window>.ortho
<window>.setProjectionMatrix