pyvista.Plotter.bounds#
- property Plotter.bounds: BoundsTuple[ソース]#
Return the bounds of all VISIBLE actors present in the active rendering window.
Actors with
visibility
disabled or withuse_bounds
disabled are not included in the bounds.バージョン 0.45 で変更: Only the bounds of visible actors are now returned. Previously, the bounds of all actors was returned, regardless of visibility.
- 戻り値:
BoundsTuple
Bounds of all visible actors in the active renderer.
参考
compute_bounds
Compute the bounds with options to enable or disable actor visibility.
例
>>> import pyvista as pv >>> pl = pv.Plotter() >>> _ = pl.add_mesh(pv.Cube()) >>> pl.bounds BoundsTuple(x_min=-0.5, x_max=0.5, y_min=-0.5, y_max=0.5, z_min=-0.5, z_max=0.5)