view_frustum

Camera.view_frustum(aspect=1.0)

Get the view frustum.

Parameters
aspectfloat, optional

The aspect of the viewport to compute the planes. Defaults to 1.0.

Returns
pyvista.PolyData

View frustum.

Examples

>>> import pyvista
>>> plotter = pyvista.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