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
../../../_images/pyvista-Camera-view_frustum-1_00_00.png