PolyData.volume#
- property PolyData.volume: float[source]#
Return the approximate volume of the dataset.
This will throw a VTK error/warning if not a closed surface.
- Returns:
floatTotal volume of the mesh.
Examples#
Download Python source code | Download Jupyter notebook
>>> import pyvista as pv
>>> sphere = pv.Sphere()
>>> sphere.volume
0.5183