Camera.view_frustum#
- Camera.view_frustum(aspect=1.0)[source]#
Get the view frustum.
- Parameters:
- aspect
float, default: 1.0 The aspect of the viewport to compute the planes.
- aspect
- Returns:
pyvista.PolyDataView frustum.
Examples#
Download Python source code | Download Jupyter notebook
>>> import pyvista as pv
>>> pl = pv.Plotter()
>>> frustum = pl.camera.view_frustum(1.0)
>>> frustum.n_points
8
>>> frustum.n_cells
6