pyvista.Camera.view_frustum#

Camera.view_frustum(aspect=1.0)[source]#

Get the view frustum.

Parameters:
aspectfloat, default: 1.0

The aspect of the viewport to compute the planes.

Returns:
pyvista.PolyData

View frustum.

Examples

>>> import pyvista as pv
>>> plotter = pv.Plotter()
>>> frustum = plotter.camera.view_frustum(1.0)
>>> frustum.n_points
8
>>> frustum.n_cells
6
https://d33wubrfki0l68.cloudfront.net/8d857d80b4aa52de3ad5db22f6e1210632178bb4/67f0a/_images/pyvista-camera-view_frustum-1_00_00.png