pyvista.MultiBlock.n_blocks#

property MultiBlock.n_blocks: int[source]#

Return the total number of blocks set.

Returns:
int

Total number of blocks set.

Examples

>>> import pyvista as pv
>>> data = [
...     pv.Sphere(center=(2, 0, 0)),
...     pv.Cube(center=(0, 2, 0)),
...     pv.Cone(),
... ]
>>> blocks = pv.MultiBlock(data)
>>> blocks.n_blocks
3